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

vscode 用 anacode 环境调用库一直失败,求大神帮助!

  •  
  •   fangbeipy · Oct 10, 2019 · 2969 views
    This topic created in 2550 days ago, the information mentioned may be changed or developed.
    mac 电脑升级最新系统之后,anacode 出了点问题,重装了一下,然后发现 vscode 里原本使用 anacode 环境的第三方库,类似 numpy,pands 全部失效,初步排除了一下,应该是运行环境的 python 和第三方库不在一个目录下,一个在 bin 下,一个在 lib 下,但是怎么解决一直解决不了,有大神能帮助一下的吗!!,万分感谢!!!
    Supplement 1  ·  Oct 10, 2019
    语法提示都能显示,就是运行不了, 显示 ImportError: No module named numpy,
    但是用 shift enter 调用 vs 内置的 jupyter 却又能在上面运行,我真是的搞的头大!
    2 replies  •  2019-10-11 10:47:28 +08:00
    nyanyh
        1
    nyanyh  
       Oct 10, 2019
    修改使用的 Python 解释器试试呢
    fangbeipy
        2
    fangbeipy  
    OP
       Oct 11, 2019
    @nyanyh 指的是左下角的那个 python 解释器吗?那个试过了,选的也是 anacode 的 python
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2314 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:54 · PVG 14:54 · LAX 23:54 · JFK 02:54
    ♥ Do have faith in what you're doing.