step1:安装pip 在python中可以使用easy_install和pip安装python拓展但推荐使用pip Don't use easy_install, unless you like stabbing yourself in the face. Use pip. Two reasons, there may be more: - pip provides an uninstall command - if an installation fails in the middle, p…
In this post I’ll go over my attempt to setup virtual environments for Python development. Most Python users probably don’t want to use virtual environments and should just set up a single user environment that works for their needs. However, if you…
首先默认安装了virtualenv 创建python2虚拟环境 your-name@node-name:~/virtual_env$ virtualenv -p /usr/bin/python2 py2env 接着会输出 Running virtualenv with interpreter /usr/bin/python2 New python executable in /home/your_name/virtual_env/py2env/bin/python2 Also creating…
首先默认安装了virtualenv 创建python3虚拟环境 your-name@node-name:~/virtual_env$ virtualenv -p /usr/bin/python3 py3env 接着会输出 Already using interpreter /usr/bin/python3 Using base prefix '/usr' New python executable in /home/your_name/virtual_env/py3env/bin/python3…