V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Chaconne
V2EX  ›  Python

python3 运行程序出错的问题

  •  
  •   Chaconne · Jun 5, 2022 · 2480 views
    This topic created in 1429 days ago, the information mentioned may be changed or developed.

    系统:kali linux 2022.2 下载了个 DDos 的程序试运行,结果报错了: https://ibb.co/KVDRb7c

    在云主机上,ubuntu22.04 运行,没报错

    10 replies    2022-06-06 02:14:45 +08:00
    wangkun025
        1
    wangkun025  
       Jun 5, 2022
    run `pip install pyroxy`

    quote: https://pypi.org/project/pyroxy/
    ila
        2
    ila  
       Jun 5, 2022 via Android
    这个提示很明显了,少模块。
    可能是没安装指定包,可能包版本低。
    Chaconne
        3
    Chaconne  
    OP
       Jun 5, 2022
    @wangkun025 这个试了,还是不行
    Chaconne
        4
    Chaconne  
    OP
       Jun 5, 2022
    @ila 我重新安装个 python3.8 试试
    wangkun025
        5
    wangkun025  
       Jun 5, 2022
    @Chaconne 不行的意思是?遇到新的错误?不会是同样的错误吧?
    ila
        6
    ila  
       Jun 5, 2022 via Android
    建议把代码 pull 到本地,用 pycharm 看看 import 的包。
    Chaconne
        7
    Chaconne  
    OP
       Jun 5, 2022
    @wangkun025 一样的错误
    hertzry
        8
    hertzry  
       Jun 6, 2022 via Android
    整个 conda 环境试试。
    stein42
        9
    stein42  
       Jun 6, 2022
    先阅读一下 README.md ,里面会有说明。
    可以建一个 python 的虚拟环境,安装 requirements.txt 里的所有包,再用虚拟环境的 python 运行 start.py
    或者根据 Dockerfile 构建 Docker 镜像运行。
    stein42
        10
    stein42  
       Jun 6, 2022
    另外对于系统默认的 python ,用系统的包管理器例如 apt 来安装模块,不要用 pip ,否则可能会破坏系统。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2637 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 11:10 · PVG 19:10 · LAX 04:10 · JFK 07:10
    ♥ Do have faith in what you're doing.