推荐学习书目
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
wszgrcy
V2EX  ›  Python

Python 的依赖纯靠手工改吗?

  •  
  •   wszgrcy · Aug 13, 2019 via Android · 2805 views
    This topic created in 2490 days ago, the information mentioned may be changed or developed.

    在学机器学习,虽然不一定学会。。。

    Python3 虚拟环境

    在安装 scikit-neuralnetwork 后,按照教程来运行 nosetests 测试,视频中秒成功

    到我这就开始包找不到了,前两个百度(google)了下,说是这个包早改另一个了。。。卡卡卡一顿改,跑起来了。。。然而没高兴多早,开始测试报错了,我一看 50 多个测试失败。。。根本没精力搞了

    主要报错是在 scipy 这个包,不知道是不是视频上的包过时了,已经有更牛逼的咋的?

    大家一直吐槽 node_modules 不好,但是人家除了路径长点,下载慢点,好像没什么缺点了。。。

    7 replies    2019-08-14 08:55:07 +08:00
    LokiSharp
        1
    LokiSharp  
       Aug 13, 2019
    pipenv 了解一下
    shakespaces
        2
    shakespaces  
       Aug 13, 2019 via Android
    conda 或者虚拟环境搞一个符合视频教程版本要求的环境
    cherbim
        3
    cherbim  
       Aug 13, 2019
    主要是 python2 与 3 不兼容,好多教程是 python2 的
    PS:虚拟环境? pyenv 了解一下,
    iPhoneXI
        4
    iPhoneXI  
       Aug 13, 2019 via Android
    看官方文档不就好了
    rogwan
        5
    rogwan  
       Aug 13, 2019 via Android
    手动改没必要,依赖包最好看官方文档说明,哪些版本是官方测试过的,要么可能会掉坑。
    heart4lor
        6
    heart4lor  
       Aug 13, 2019
    python 项目一般打包一个精确到版本号的 requirements.txt ,建议用虚拟环境,`pip install -r requirements.txt`就可以完全按照要求版本安装依赖库
    janxin
        7
    janxin  
       Aug 14, 2019 via iPhone
    你没搞明白就乱搞肯定就掉坑了啊…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5366 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    ♥ Do have faith in what you're doing.