我正在构建一个运行代码的环境,代码“import src”不在colab或我的电脑中。我看到了 PyPl 页面,它说我应该运行“pip install src”,但我仍然无法成功。
(base) oblic@oblic-PC:~$ pip install src
Collecting src
Using cached src-0.0.7.zip (6.3 kB)
Building wheels for collected packages: src
Building wheel for src (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-m62_ocqn
cwd: /tmp/pip-install-qffzaygw/src/
Complete output (41 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/src
copying src/__init__.py -> …Run Code Online (Sandbox Code Playgroud)