python批量安装第三方库_python 安装第三方库的时候出现的问题,求助

UnicodeDecodeError: 'ascii' codec can't decode byte 0xb3 in position 9: ordinal not in range(128)

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Python27\python.exe'.

Collecting pip==8.1.2

You are using pip version 7.1.0, however version 8.1.2 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

InsecurePlatformWarning

The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.douban.com'.

Exception:

Traceback (most recent call last):

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\basecommand.py", line 223, in main

status = self.run(options, args)

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\commands\install.py", line 282, in run

requirement_set.prepare_files(finder)

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\req\req_set.py", line 334, in prepare_files

functools.partial(self._prepare_file, finder))

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\req\req_set.py", line 321, in _walk_req_to_install

more_reqs = handler(req_to_install)

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\req\req_set.py", line 491, in _prepare_file

session=self.session)

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\download.py", line 825, in unpack_url

session,

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\download.py", line 673, in unpack_http_url

from_path, content_type = _download_http_url(link, session, temp_dir)

File "C:\Python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\download.py", line 884, in _download_http_url

file_path = os.path.join(temp_dir, filename)

File "C:\Python27\lib\ntpath.py", line 108, in join

path += "\\" + b

UnicodeDecodeError: 'ascii' codec can't decode byte 0xb3 in position 9: ordinal not in range(128)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值