Closed leetschau closed 6 years ago
>>> from baidupcsapi import PCS --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-afdc40e47385> in <module>() ----> 1 from baidupcsapi import PCS /home/bob/.local/share/virtualenvs/baidudownload-1YNmSKD8/local/lib/python2.7/site-packages/baidupcsapi/__init__.py in <module>() 7 __license__ = 'MIT' 8 ----> 9 from .api import PCS /home/bob/.local/share/virtualenvs/baidudownload-1YNmSKD8/local/lib/python2.7/site-packages/baidupcsapi/api.py in <module>() 13 import platform 14 import subprocess ---> 15 from urllib import parse as urlparse 16 from urllib.parse import urlencode 17 from hashlib import md5 ImportError: cannot import name parse
Python版本2.7,其他包:
$ pip freeze backports.shutil-get-terminal-size==1.0.0 baidupcsapi==0.9.3 certifi==2018.1.18 chardet==3.0.4 decorator==4.2.1 enum34==1.1.6 idna==2.6 ipython==5.5.0 ipython-genutils==0.2.0 pathlib2==2.3.0 pexpect==4.4.0 pickleshare==0.7.4 prompt-toolkit==1.0.15 ptyprocess==0.5.2 pyasn1==0.4.2 Pygments==2.2.0 requests==2.18.4 requests-toolbelt==0.8.0 rsa==3.4.2 scandir==1.7 simplegeneric==0.8.1 six==1.11.0 traitlets==4.3.2 urllib3==1.22 wcwidth==0.1.7
会不会是哪个包的版本有问题,谢谢!
改用python3
Python版本2.7,其他包:
会不会是哪个包的版本有问题,谢谢!