使用命令后尝试在新创建的环境中安装库
pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
并得到一个错误:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\anaconda3\envs\mynewflaskenv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-bhlep5x0\\markupsafe_32ada0e4f7c949d6829afd169418e437\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-bhlep5x0\\markupsafe_32ada0e4f7c949d6829afd169418e437\\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'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-ud9uf7zf'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-bhlep5x0\markupsafe_32ada0e4f7c949d6829afd169418e437\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-bhlep5x0\markupsafe_32ada0e4f7c949d6829afd169418e437\setup.py", line 6, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name …Run Code Online (Sandbox Code Playgroud)