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
bytenoob
V2EX  ›  Python

请教在不同的 virtualenv 之间切换,如何处理 pylint 的问题?

  •  
  •   bytenoob ·
    bufrr · Mar 15, 2016 · 2264 views
    This topic created in 3698 days ago, the information mentioned may be changed or developed.

    比如我现在处理项目 1 ,workon env1后编辑器的 pylint path 设置写死为 /Users/adam/Envs/env1/bin/pylint

    然后我处理项目 2 ,workon env2,这时候就会出现 pylint 各种报错,比如不存在 xxx 包等,因为调用的还是 env1 中的 pylint

    请教大家这种情况怎么解决啊?谢谢!

    1 replies    2016-03-15 21:00:18 +08:00
    mengzhuo
        1
    mengzhuo  
       Mar 15, 2016 via iPhone   ❤️ 1
    改 activate 里的变量就成了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2643 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
    ♥ Do have faith in what you're doing.