python中安装matplotlib出现问题,我是个菜鸟,求大神带我飞 60
在里面输入pipinstallmatplotlib后代码如下:(C:\ProgramData\Anaconda3\envs\tensorflow)C:\Users\Adm...
在里面输入pip install matplotlib后代码如下:
(C:\ProgramData\Anaconda3\envs\tensorflow) C:\Users\Administrator\PycharmProjects\untitled>pip install matplotlib
Collecting matplotlib
Downloading matplotlib-2.2.0-cp35-cp35m-win_amd64.whl (8.7MB)
4% |█▍ | 368kB 484kB/s eta 0:00:18Exception:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 821, in unpack_url
hashes=hashes
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 659, in unpack_http_url
hashes)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 571, in written_chunks
for chunk in chunks:
。。。。。(提问过长,隐藏一部分)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\colorama\ansitowin32.py", line 169, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\colorama\ansitowin32.py", line 175, in write_plain_text
self.wrapped.flush()
OSError: raw write() returned invalid length 134 (should have been between 0 and 69) 展开
(C:\ProgramData\Anaconda3\envs\tensorflow) C:\Users\Administrator\PycharmProjects\untitled>pip install matplotlib
Collecting matplotlib
Downloading matplotlib-2.2.0-cp35-cp35m-win_amd64.whl (8.7MB)
4% |█▍ | 368kB 484kB/s eta 0:00:18Exception:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 821, in unpack_url
hashes=hashes
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 659, in unpack_http_url
hashes)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 571, in written_chunks
for chunk in chunks:
。。。。。(提问过长,隐藏一部分)
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\colorama\ansitowin32.py", line 169, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\colorama\ansitowin32.py", line 175, in write_plain_text
self.wrapped.flush()
OSError: raw write() returned invalid length 134 (should have been between 0 and 69) 展开
2个回答
2018-03-20
展开全部
你已经装了Anaconda3,里面本来就包含matplotlib,不用再额外装了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询