在使用pip list时出现DEPRECATION是pip增高怎么回事事?怎么解决

5010 条评论分享收藏感谢收起赞同 22添加评论分享收藏感谢收起解决Python3 pip list 红色DEPRECATION - 战气凌神 - 博客园
解决Python3 pip list 红色DEPRECATION
打开文件扩展名和隐藏的项目
&找到ProgramData,在该目录下创建pip文件夹,在pip里面创建pip.ini
&在pip.ini中添加如下信息
&再输入pip listMac环境下,numpy升级问题。
10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whlInstalling
collected packages: numpy
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:Exception:Traceback
(most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init__.py",
line 315, in renames
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)OSError:
[Errno 1] Operation not permitted: '/var/folders/5n/vbm997m56xg3kw67y6bccn2m0000gn/T/pip-4tcBsd-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'。
选择终端(注意,这里选择的时候要把键盘按下去,而不是在键盘上轻击,我一开始就是轻击,然后发现电脑根本没有反应,还以为电脑坏了,原谅我也没用苹果多久);
没有更多推荐了,
(window.slotbydup=window.slotbydup || []).push({
id: '4770930',
container: s,
size: '300,250',
display: 'inlay-fix'5010 条评论分享收藏感谢收起python pip安装requests时报错,怎么解决_百度知道
python pip安装requests时报错,怎么解决
我有更好的答案
D:\Python&pip install --allow-all-external requestsDEPRECATION: --allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.Collecting requestsDownloading requests-2.12.4-py2.py3-none-any.whl (576kB)39% |████████████▌
| 225kB 6.1kB/s eta 0:00:58Exception:Traceback (most recent call last):File &d:\python\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py&, line 232, in _error_catcheryieldFile &d:\python\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py&, line 314, in readdata = self._fp.read(amt)File &d:\python\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py&, line 60, in readdata = self.__fp.read(amt)File &d:\python\lib\http\client.py&, line 449, in readn = self.readinto(b)File &d:\python\lib\http\client.py&, line 493, in readinton = self.fp.readinto(b)File &d:\python\lib\socket.py&, line 586, in readintoreturn self._sock.recv_into(b)File &d:\python\lib\ssl.py&, line 1002, in recv_intoreturn self.read(nbytes, buffer)File &d:\python\lib\ssl.py&, line 865, in readreturn self._sslobj.read(len, buffer)File &d:\python\lib\ssl.py&, line 625, in readv = self._sslobj.read(len, buffer)socket.timeout: The read operation timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File &d:\python\lib\site-packages\pip\basecommand.py&, line 215, in mainstatus = self.run(options, args)File &d:\python\lib\site-packages\pip\commands\install.py&, line 324, in runrequirement_set.prepare_files(finder)File &d:\python\lib\site-packages\pip\req\req_set.py&, line 380, in prepare_filesignore_dependencies=self.ignore_dependencies))File &d:\python\lib\site-packages\pip\req\req_set.py&, line 620, in _prepare_filesession=self.session, hashes=hashes)File &d:\python\lib\site-packages\pip\download.py&, line 821, in unpack_urlhashes=hashesFile &d:\python\lib\site-packages\pip\download.py&, line 659, in unpack_http_urlhashes)File &d:\python\lib\site-packages\pip\download.py&, line 882, in _download_http_url_download_url(resp, link, content_file, hashes)File &d:\python\lib\site-packages\pip\download.py&, line 603, in _download_urlhashes.check_against_chunks(downloaded_chunks)File &d:\python\lib\site-packages\pip\utils\hashes.py&, line 46, in check_against_chunksfor chunk in chunks:File &d:\python\lib\site-packages\pip\download.py&, line 571, in written_chunksfor chunk in chunks:File &d:\python\lib\site-packages\pip\utils\ui.py&, line 139, in iterfor x in it:File &d:\python\lib\site-packages\pip\download.py&, line 560, in resp_readdecode_content=False):File &d:\python\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py&, line 357, in streamdata = self.read(amt=amt, decode_content=decode_content)File &d:\python\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py&, line 324, in readflush_decoder = TrueFile &d:\python\lib\contextlib.py&, line 100, in __exit__self.gen.throw(type, value, traceback)File &d:\python\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py&, line 237, in _error_catcherraise ReadTimeoutError(self._pool, None, 'Read timed out.')pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.换一个国内的更新源吧:pip install requests -i
--trusted-host=pypi.douban.com
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 pip关节 的文章

 

随机推荐