我有一个当前使用python 2.5.4运行的Debian系统.我得到了virtualenv正确安装,一切正常.我是否有可能使用不同版本的Python的virtualenv?
我编译了Python 2.6.2,并希望将它与一些virtualenv一起使用.是否足以覆盖二进制文件?或者我是否必须更改库中的某些内容?
我的操作系统是Lubuntu 14.04,默认的Python版本是Python 2.7.6,但是在
/usr/bin
Run Code Online (Sandbox Code Playgroud)
它说我安装了Python 3.4(当我运行python3 -V它时说我有Python 3.4.0).Python 3.4是否预装了pip?因为我跑的时候
pip -V
Run Code Online (Sandbox Code Playgroud)
在终端中,它表示该程序当前未安装.话虽如此,假设我想创建一个使用Python 3.4.3 的Django项目:我先下载python3-pip然后再下载virtualenv然后再做
pip3 install Django==1.8
Run Code Online (Sandbox Code Playgroud)
?或者是否已经安装了Python 3.4附带的预装pip 3?
我有与此帖子相同的错误: Python PIP安装引发TypeError:-=:'Retry'和'int'的不受支持的操作数类型
无论我尝试使用pip安装哪种方式,我都会收到相同的错误。系统信息:Linux版本4.4.0-38-通用(build @ lgw01-58)(gcc版本5.4.0 20160609(Ubuntu 5.4.0-6ubuntu1〜16.04.2))#57-Ubuntu SMP 9月6日星期二15:42 :33 UTC 2016
如果我尝试使用在该问题上发布的解决方案,则会出现无法访问的错误:
$ sudo python get-pip.py
The directory '/home/theoa/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/theoa/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the …Run Code Online (Sandbox Code Playgroud) 我在Acer笔记本电脑上使用Ubuntu 16.04.2 LTS,我正在尝试更新我的pip安装(当前版本:8.1.1).当我运行命令
pip install --upgrade pip
我得到以下输出:
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 328, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 512, in _prepare_file
finder, self.upgrade, require_hashes)
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 273, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 442, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 400, in find_all_candidates
for …Run Code Online (Sandbox Code Playgroud)