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

趁打折入手了coderunner,在使用python时遇到问题,我是用virtualenv的,应该怎么配置才能让它使用我的env?有同学遇到过这个问题吗?网上搜了下没什么结果

  •  
  •   goofansu · Jun 6, 2012 · 3840 views
    This topic created in 5110 days ago, the information mentioned may be changed or developed.
    2 replies    1970-01-01 08:00:00 +08:00
    yoyicue
        1
    yoyicue  
       Jun 9, 2012   ❤️ 1
    首先要了解一个事情
    使用 virtualenv 的 env/bin 目录中的 python 就不用 source 命令了

    下文中使用 /User/Yourname/venv/bin/python 来讲解
    (~/venv/bin/python)

    打开 CodeRunner 之后打开 Preferences
    翻到 Languages 选项卡
    然后新添加一门 Language 例如 Venv
    然后在右面 Run Command 输入
    /Users/YourName/venv/bin/python $filename

    附加做两个无关紧要的事情
    Syntax Mode 选择 Pyhton
    File Extension 填写 py

    重新打开软件后你就看见默认的语言是 Venv 了
    这样你再打开运行的文件 就是跑在上面所说的 virtualenv 里了

    goofansu
        2
    goofansu  
    OP
       Jun 9, 2012
    @yoyicue 原来是这样,多谢多谢,问题解决,这个软件真不错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   940 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:29 · PVG 04:29 · LAX 13:29 · JFK 16:29
    ♥ Do have faith in what you're doing.