问题描述
我目前正在尝试通过本教程安装Sevabot: https://sevabot-skype-bot.readthedocs.org/en/latest/ubuntu.html 一切正常,直到需要安装Sevabot.我可以很好地下载virtualenv.py文件,但是当我要执行python virtualenv.py时,它将返回错误.
I'm currently trying to install Sevabot with this tutorial: https://sevabot-skype-bot.readthedocs.org/en/latest/ubuntu.html Everything is going fine until I need to install Sevabot. I can download the virtualenv.py file just fine but when I want to execute python virtualenv.py it returns a error.
奇怪的是,我已经完成了5次,没有任何问题.始终为Ubuntu 12.04 x86_64.已经进行了几次全新安装.
Weird thing is, I have done this 5 times without any problems. Always Ubuntu 12.04 x86_64. Already did a clean install several times.
~/sevabot$ uname -a
Linux sbvps01 2.6.32-5-openvz-amd64 #1 SMP Fri May 10 09:43:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Virtualenv是最新的:
Virtualenv is up to date:
easy_install virtualenv
Searching for virtualenv
Best match: virtualenv 1.7.1.2
Adding virtualenv 1.7.1.2 to easy-install.pth file
Installing virtualenv script to /usr/local/bin
Using /usr/lib/python2.7/dist-packages
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
Python版本:
python -V
Python 2.7.3
推荐答案
当您不使用分发打包系统安装virtualenv/python时,可能会发生这种情况.您可能要在 https://github.com/pypa/virtualenv/tree/中下载文件开发/virtualenv_support 并使用 --extra-search-dir virtualenv_support
This can happen when you are not installing virtualenv/python using distribution packaging system.You might want to download files in https://github.com/pypa/virtualenv/tree/develop/virtualenv_support and run virtualenv with --extra-search-dir virtualenv_support
这里也有解释:http://www.virtualenv.org/en/latest/#environment-variables-and-configuration-files .
这篇关于Python virtualenv->venv/bin/python中的新python可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!