这是安装的代码pip3 install -e D:\turtle-0.0.2\setup.py
文件里面的40行也改了
运行结果如下:
Running setup.py develop for turtle
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\turtle-0.0.2\setup.py'"'"'; file='"'"'D:\turtle-0.0.2\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
cwd: D:\turtle-0.0.2
Complete output (3 lines):
running develop
running egg_info
error: [WinError 5] 拒绝访问。: 'turtle.egg-info'
Rolling back uninstall of turtle
Moving to c:\users\w'w'r\appdata\roaming\python\python39\site-packages\turtle-0.0.1.dist-info
from C:\Users\w'w'r\AppData\Roaming\Python\Python39\site-packages~urtle-0.0.1.dist-info
Moving to c:\users\w'w'r\appdata\roaming\python\python39\site-packages\turtle
from C:\Users\w'w'r\AppData\Roaming\Python\Python39\site-packages~urtle
ERROR: Command errored out with exit status 1: 'D:\anaconda\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\turtle-0.0.2\setup.py'"'"'; file='"'"'D:\turtle-0.0.2\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
你直接pip3 install turtle就行
通过源码安装不是用pip命令,cd到源码文件目录,运行命令:
python setup.py install
如有帮助,请点采纳。
turtle库python不是自带的吗