pycharm没办法安装第三方库怎么解决

2025-04-05 12:01:04
推荐回答(1个)
回答1:

  刚好安装了pycharm,打算用这个ide来开发python,所以新建了一个django的工程,但是提示django的第三方库安装失败。真坑爹啊。   Exception:   Traceback (most recent call last):   File "C:\Python27\lib\site-packages\pip-1.5.6-py2.7.egg\pip\basecommand.py", line 122, in main   status = self.run(options, args)   File "C:\Python27\lib\site-packages\pip-1.5.6-py2.7.egg\pip\commands\install.py", line 278, in run   requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)   File "C:\Python27\lib\site-packages\pip-1.5.6-py2.7.egg\pip\req.py", line 1197, in prepare_files   do_download,   File "C:\Python27\lib\site-packages\pip-1.5.6-py2.7.egg\pip\req.py", line 1375, in unpack_url   self.session,   File "C:\Python27\lib\site-packages\pip-1.5.6-py2.7.egg\pip\download.py", line 571, in unpack_http_url   temp_location = os.path.join(temp_dir, filename)   File "C:\Python27\lib\ntpath.py", line 84, in join   result_path = result_path + p_path   UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 7: ordinal not in range(128)