(1)首先,用在桌面新建一个新的文件夹,然后打开cmd输入以下内容:
后出现:
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\159~1\\appdata\\local\\temp\\pip-install-o3ojht\\you-get\\setup.py'"'"'; __file__='"'"'c:\\users\\159~1\\appdata\\local\\temp\\pip-install-o3ojht\\you-get\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\users\159~1\appdata\local\temp\pip-pip-egg-info-8rbiio'
cwd: c:\users\159~1\appdata\local\temp\pip-install-o3ojht\you-get\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\159~1\appdata\local\temp\pip-install-o3ojht\you-get\setup.py", line 10, in <module>
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA), encoding='utf-8').read())
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(2)改用:pip3 install you-get
(3)查看 you-get的安装位置
(4)复制Location地址添加到环境变量(注意:将site-packages 改成Scripts):
(5)在桌面新建文件夹,后进入文件夹,输入cmd回车:
(6)最后输入you-get ....: