V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
altboy
V2EX  ›  Python

各位老哥, Python 解释器能更换吗?比如 Cpython 改为 PyPy,还是说要重新安装呢?

  •  
  •   altboy · 2017-07-21 13:30:02 +08:00 · 2810 次点击
    这是一个创建于 2443 天前的主题,其中的信息可能已经有所发展或是发生改变。

    另,有没有哪位老哥能帮忙说说 django 项目具体怎么上线,比如是用它自带的 wsgi,Apache,Nginx,还是什么?缓存也是用它自己的就行么?

    ryanzyy
        1
    ryanzyy  
       2017-07-21 16:49:21 +08:00
    Python 解释器在你的电脑上能换
    从 Cpython 换到 PyPy
    你可以理解为 从 Python2.5 换到 Python2.7
    重新安装解释器
    用新的解释器执行你的代码
    altboy
        2
    altboy  
    OP
       2017-07-21 20:16:20 +08:00
    @ryanzyy 好的,谢谢,两个解释器能并存么?输入不同的命令启动不同的解释器
    ryanzyy
        3
    ryanzyy  
       2017-07-21 20:53:01 +08:00
    可以并存
    举例说明比如 你装了 python2 和 python3
    在 windows 下 可以创建.bat 文件 或者给.exe 改名
    在 Linux 下可以用 simlink
    把 python3 路径下的 python 起个别名叫 python3
    这样就可以输入 python 和 python3 两个不同命令 来运行不同版本的 Python 了
    你可以去搜索一下关键词 “ Path 环境变量” “ which 指令”(linux) "where 指令"(windows)
    J0k3r
        4
    J0k3r  
       2017-07-22 09:15:11 +08:00
    项目部署在生产环境上需要 nginx + uwsgi
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5392 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:05 · PVG 15:05 · LAX 00:05 · JFK 03:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.