Python virtualenv->venv/bin/python中的新python可执行文件 [英] Python virtualenv -> New python executable in venv/bin/python

查看:59
本文介绍了Python virtualenv->venv/bin/python中的新python可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试通过本教程安装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.

<代码>〜/sevabot $ python virtualenv.py venvvenv/bin/python中的新python可执行文件找不到sdist setuptools-*.tar.gz找不到sdist pip-*.tar.gz

奇怪的是,我已经完成了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-&gt;venv/bin/python中的新python可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆