该程序运行正常,然后当我尝试安装 IMAPClient 模块时出现错误:
sudo pip3 install IMAPClient
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
121, in create_process
shlex.split(command),
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 136, in read_token
**strong text**nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'
我尝试重新安装pip,我还认为某些已安装的包有问题,如果我尝试显示包列表,我得到:
pip3 list
Package Version
------------------------ ---------
apt-clone 0.2.1
apturl 0.5.2
asn1crypto 0.24.0
bcrypt 3.1.4
(some more packages).........
真的很期待建议,在问之前诚实地搜索了论坛。
慕尼黑5688855
相关分类