(venv) E:\生物信息学\02 Biopython 分析序列>pip3 install scanpy
Collecting scanpy
Using cached scanpy-1.8.1-py3-none-any.whl (2.0 MB)
Collecting anndata>=0.7.4
Using cached anndata-0.7.6-py3-none-any.whl (127 kB)
Collecting patsy
Using cached patsy-0.5.1-py2.py3-none-any.whl (231 kB)
Collecting tables
Using cached tables-3.6.1.tar.gz (4.6 MB)
ERROR: Command errored out with exit status 1:
command: 'e:\生物信息学\02 biopython 分析序列\venv\scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\a\\AppData\\Loca
l\\Temp\\pip-install-_d87buol\\tables_1ca278692848441cbc57c7d0a2c1b845\\setup.py'"'"'; __file__='"'"'C:\\Users\\a\\AppData\\Local\\Temp\\pip-install-_d87buol\\tables_1c
a278692848441cbc57c7d0a2c1b845\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools im
port setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\a
\AppData\Local\Temp\pip-pip-egg-info-1_paqphp'
cwd: C:\Users\a\AppData\Local\Temp\pip-install-_d87buol\tables_1ca278692848441cbc57c7d0a2c1b845\
Complete output (17 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\a\AppData\Local\Temp\pip-install-_d87buol\tables_1ca278692848441cbc57c7d0a2c1b845\setup.py", line 634, in <module>
libdir = compiler.has_function(package.target_function,
File "C:\Users\a\AppData\Local\Programs\Python\Python39\lib\distutils\ccompiler.py", line 792, in has_function
objects = self.compile([fname], include_dirs=include_dirs)
File "C:\Users\a\AppData\Local\Programs\Python\Python39\lib\distutils\_msvccompiler.py", line 323, in compile
self.initialize()
File "C:\Users\a\AppData\Local\Programs\Python\Python39\lib\distutils\_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
File "e:\生物信息学\02 biopython 分析序列\venv\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "e:\生物信息学\02 biopython 分析序列\venv\lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.c
om/visual-cpp-build-tools/
* Using Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
* USE_PKGCONFIG: False
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/32/847ee3f521aae6a0be380d923a736162d698586f444df1ac24b98c65025c/tables-3.6.1.tar.gz#sha256=49a972b8a7c27a
8a173aeb05f67acb45fe608b64cd8e9fa667c0962a60b71b49 (from https://pypi.org/simple/tables/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.
py egg_info Check the logs for full command output.
Using cached tables-3.5.2.tar.gz (7.8 MB)
ERROR: Command errored out with exit status 1:
command: 'e:\生物信息学\02 biopython 分析序列\venv\scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\a\\AppData\\Loca
l\\Temp\\pip-install-_d87buol\\tables_18c7c6c0eff04fdc8acc980233c3581e\\setup.py'"'"'; __file__='"'"'C:\\Users\\a\\AppData\\Local\\Temp\\pip-install-_d87buol\\tables_18
c7c6c0eff04fdc8acc980233c3581e\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools im
port setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\a
\AppData\Local\Temp\pip-pip-egg-info-_d4fq6p8'
cwd: C:\Users\a\AppData\Local\Temp\pip-install-_d87buol\tables_18c7c6c0eff04fdc8acc980233c3581e\
#因字数限制,已删除类似代码
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/da/33/bc5a7a75978e783e01780f1710e9061f74d7dc182c8a33f1d57179df3c95/scanpy-0.2.1.tar.gz#sha256=03c6c6bea9af5b
0d1f65a8cd111ef3802d8c1f6e40ed56dfa05aeea1bd8dad5c (from https://pypi.org/simple/scanpy/). Command errored out with exit status 1: python setup.py egg_info Check the lo
gs for full command output.
ERROR: Cannot install scanpy==1.0.1, scanpy==1.0.3, scanpy==1.2.2, scanpy==1.3.3, scanpy==1.3.7, scanpy==1.3.8, scanpy==1.4, scanpy==1.4.1, scanpy==1.4.2, scanpy==1.4.3
, scanpy==1.4.4, scanpy==1.4.4.post1, scanpy==1.4.5.1, scanpy==1.4.5.post2, scanpy==1.4.5.post3, scanpy==1.4.6, scanpy==1.5.0, scanpy==1.5.1, scanpy==1.6.0, scanpy==1.6
.1, scanpy==1.7.0, scanpy==1.7.1, scanpy==1.7.2, scanpy==1.8.0 and scanpy==1.8.1 because these package versions have conflicting dependencies.
The conflict is caused by:
scanpy 1.8.1 depends on tables
scanpy 1.8.0 depends on tables
scanpy 1.7.2 depends on tables
scanpy 1.7.1 depends on tables
scanpy 1.7.0 depends on tables
scanpy 1.6.1 depends on tables
scanpy 1.6.0 depends on tables
scanpy 1.5.1 depends on tables
scanpy 1.5.0 depends on tables
scanpy 1.4.6 depends on tables
scanpy 1.4.5.1 depends on tables
scanpy 1.4.5.post3 depends on tables
scanpy 1.4.5.post2 depends on tables
scanpy 1.4.4.post1 depends on matplotlib==3.0.*
scanpy 1.4.4 depends on matplotlib==3.0.*
scanpy 1.4.3 depends on tables
scanpy 1.4.2 depends on tables
scanpy 1.4.1 depends on tables
scanpy 1.4 depends on tables
scanpy 1.3.8 depends on tables
scanpy 1.3.7 depends on tables
scanpy 1.3.3 depends on tables
scanpy 1.2.2 depends on tables
scanpy 1.0.3 depends on tables
scanpy 1.0.1 depends on tables
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
底部已经说了要解决此问题,您可以尝试:
1.放宽指定的软件包版本范围
2.删除包版本以允许pip尝试解决依赖冲突
确保已安装Python 3并正在使用相应版本的pip
需要安装 Microsoft Visual C++ 14.0 及以上版本
1.可以更新一下pip版本,
2.python3的版本与许多库都不能完全兼容,所以你尽量找一个合适的scanpy版本,下载时尽量别有版本要求,让它自动筛选
如果有用,希望采纳哦~