- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试按照 this tutorial 在 Python 3.7 和 2.7 的 Anaconda2 提示符上安装 deeptools
.
首先,我遇到了一个环境错误,我通过运行以下命令解决了该错误:
$ conda create --name dianaenv python=2.7
$ conda activate dianaenv
$ conda config --add channels bioconda
$ conda install -c bioconda deeptools
但是现在我在运行最后一个 conda install
时收到以下错误:
The error: Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort.- failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Package vs2008_runtime conflicts for: python=2.7 -> vs2008_runtime Package sqlite conflicts for: python=2.7 -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.30.1,<4.0a0'] Package pysam conflicts for: deeptools -> pysam[version='>=0.14.0'] Package vc conflicts for: python=2.7 -> vc[version='9.*|>=9,<10.0a0'] Package deeptoolsintervals conflicts for: deeptools -> deeptoolsintervals[version='>=0.1.8'] Package matplotlib conflicts for: deeptools -> matplotlib[version='>=2.1.1|>=3.0.0'] Package pybigwig conflicts for: deeptools -> pybigwig[version='>=0.2.3'] Package ca-certificates conflicts for: python=2.7 -> ca-certificates Package scipy conflicts for: deeptools -> scipy[version='>=0.17.0'] Package py2bit conflicts for: deeptools -> py2bit[version='>=0.2.0'] Package plotly conflicts for: deeptools -> plotly[version='>=1.9.0|>=2.0.0'] Package pip conflicts for: python=2.7 -> pip Package numpy conflicts for: deeptools -> numpy[version='>=1.9.0'] Package pandas conflicts for: deeptools -> pandas
我还尝试单独安装要求并安装numpy
、scipy
和matplotlib
。一切都很好。但是当我尝试安装 py2bit
、pybigwig
或 pysam
时,我也收到以下错误:
$ pip install py2bit
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting py2bit Using cached https://files.pythonhosted.org/packages/53/bb/547a927bed736ead3dc909e1e552d57c9034bb9493eff80544c0cf6e4828/py2bit-0.3.0.tar.gz Building wheels for collected packages: py2bit Building wheel for py2bit setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\User\Anaconda2\envs\dianaenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\setup.py'"'"'; file='"'"'c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\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 'c:\users\user\appdata\local\temp\pip-wheel-vrkfci' --python-tag cp27 cwd: c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\ Complete output (21 lines): C:\Users\User\Anaconda2\envs\dianaenv\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'classifier' warnings.warn(msg) running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-2.7 creating build\lib.win-amd64-2.7\py2bitTest copying py2bitTest\test.py -> build\lib.win-amd64-2.7\py2bitTest copying py2bitTest__init__.py -> build\lib.win-amd64-2.7\py2bitTest running egg_info writing py2bit.egg-info\PKG-INFO writing top-level names to py2bit.egg-info\top_level.txt writing dependency_links to py2bit.egg-info\dependency_links.txt reading manifest file 'py2bit.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'py2bit.egg-info\SOURCES.txt' copying py2bitTest\foo.2bit -> build\lib.win-amd64-2.7\py2bitTest running build_ext building 'py2bit' extension error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
ERROR: Failed building wheel for py2bit Running setup.py clean for py2bit Failed to build py2bit Installing collected packages: py2bit Running setup.py install for py2bit ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\User\Anaconda2\envs\dianaenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\setup.py'"'"'; file='"'"'c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\user\appdata\local\temp\pip-record-xmdylh\install-record.txt' --single-version-externally-managed --compile cwd: c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\ Complete output (21 lines): C:\Users\User\Anaconda2\envs\dianaenv\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'classifier' warnings.warn(msg) running install running build running build_py creating build creating build\lib.win-amd64-2.7 creating build\lib.win-amd64-2.7\py2bitTest copying py2bitTest\test.py -> build\lib.win-amd64-2.7\py2bitTest copying py2bitTest__init__.py -> build\lib.win-amd64-2.7\py2bitTest running egg_info writing py2bit.egg-info\PKG-INFO writing top-level names to py2bit.egg-info\top_level.txt writing dependency_links to py2bit.egg-info\dependency_links.txt reading manifest file 'py2bit.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'py2bit.egg-info\SOURCES.txt' copying py2bitTest\foo.2bit -> build\lib.win-amd64-2.7\py2bitTest running build_ext building 'py2bit' extension error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\User\Anaconda2\envs\dianaenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\setup.py'"'"'; file='"'"'c:\users\user\appdata\local\temp\pip-install-6nxreu\py2bit\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\user\appdata\local\temp\pip-record-xmdylh\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
此外,如果我尝试使用 pip install
,我会收到以下 matplotlib
错误:
$ pip install --user deeptools
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting deeptools Using cached https://files.pythonhosted.org/packages/82/8e/d9d4b66b2ce1bd48f1db43357c8eb019ae3e8bb1bb7a9e82667db981e1df/deepTools-3.3.1.tar.gz Collecting numpy>=1.9.0 Downloading https://files.pythonhosted.org/packages/48/83/203c397ecec78bdd618a0fb04a47482cfa2ae5ea2c6d428ed94258fe8671/numpy-1.16.5-cp27-cp27m-win_amd64.whl (11.9MB) |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 11.9MB 2.5MB/s Collecting scipy>=0.17.0 Downloading https://files.pythonhosted.org/packages/49/73/22e125f335986fdc3b03c09cdf8ffe0d9d5471eec301aeb2e33db78b3e7f/scipy-1.2.2-cp27-cp27m-win_amd64.whl (30.5MB) |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 30.5MB 187kB/s ERROR: Could not find a version that satisfies the requirement matplotlib>=3.0.0 (from deeptools) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4) ERROR: No matching distribution found for matplotlib>=3.0.0 (from deeptools)
我尝试卸载并重新安装 anaconda 和其他软件包,但它不起作用。
问:安装 deeptools
时如何解决 UnsatisfiableError?
最佳答案
从vs2008_runtime
来看,这是一个Windows系统,但是Bioconda只支持Unix和Linux。此外,deeptools
需要 deeptools-intervals
,它也仅支持 Unix 和 Linux。
我不使用 Windows,但我听说过有关适用于 Linux 的 Windows 子系统 (WSL) 的好消息。这样,您就可以安装 Linux 版本的 Conda(如 this article )。尽管对于科学工作,我强烈鼓励安装 Miniconda而不是 Anaconda。
关于python - 安装 deeptools 时如何解决 UnsatisfiableError?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58615255/
我正在尝试创建自己的 anaconda 包,经过多次尝试,我终于设法创建了一个可用的 conda package出我的 code . (它取决于来自 haasad channel 的包,所以它应该像这
我正在尝试使用以下命令在 Mac 终端上安装 pairtools ( https://github.com/mirnylab/pairtools) 包: conda install -c conda-
对于我的College项目,我尝试使用conda install pyqt=4命令安装pyqt,但是它显示如下所示的错误(即使在解决环境几分钟后,也会出现此错误)。 我是这些东西的新手,有人可以帮我解
我正在尝试在 Windows 上使用 Anaconda2 安装 Orange 2.7,但运气不太好。 我尝试在命令提示符中使用:conda install -c anaconda Orange。 这不
我正在使用 conda 安装 cuml conda install -c rapidsai cuml=21.12 这是我得到的痕迹: Collecting package metadata (curr
conda install -c anaconda -c conda-forge -c nvidia cudatoolkit=11 tensorflow-gpu=2 我想安装 cudatoolkit
尝试在 Docker 中的 conda 中安装 pytorch,并得到 UnsatisfiableError。但是,我在错误消息中找不到任何实际冲突,或者我可能无法正确理解它。使用的 Docker 镜
我安装了 Python 3.6 anaconda,并希望通过 conda install basemap 包进行安装。但是,我收到以下错误: UnsatisfiableError: The follo
我正在尝试按照 this tutorial 在 Python 3.7 和 2.7 的 Anaconda2 提示符上安装 deeptools . 首先,我遇到了一个环境错误,我通过运行以下命令解决了该错
我正在尝试打包我的 python 代码以在 Anaconda 云上发布。 文件夹结构如下所示: . ├── conda-recipe │ ├── build.bat │ ├── build.s
尝试使用 conda 安装tensorflow,但抛出了规范冲突错误。我没有安装 python 3.5 conda install -c conda-forge tensorflow Fetching
我的所有 miniconda 环境都出现错误。刚才重新做了一个环境,还是报同样的错误: conda create --name py36 python=3.6 spyder jupyter ^ 工作正
尝试使用命令 conda update conda 从终端更新 conda 时出现错误.它在说: Solving environment: failed UnsatisfiableError: The
嗨,我正在尝试在 Anaconda 中安装 PulP,显然我用 google 搜索了它,所以我知道你应该写: conda install -c primer pulp 在 Anaconda 中写下这个
我目前通过 Anaconda Continuum 安装了 Python 3.5.2。我正在尝试升级到 Python 3.6,但是当我尝试运行 conda install python=3.6 时出现以
如讲座“使用 opencv 和深度学习进行计算机视觉的 python”(udemy 类(class))中所示,我正在使用类(class)提供的 yml 文件创建一个环境。我收到以下错误 unsatis
我目前通过 Anaconda Continuum 安装了 Python 3.5.2。我正在尝试升级到 Python 3.6,但当我尝试运行 conda install python=3.6 时收到以下
我目前通过 Anaconda Continuum 安装了 Python 3.5.2。我正在尝试升级到 Python 3.6,但是当我尝试运行 conda install python=3.6 时出现以
如何在OS X中为Anaconda Python安装OpenCV?我在Windows 7企业版中使用了相同的命令,并且有效 Monas-MacBook-Pro:machine_learning mon
我已经尝试通过 Anaconda Navigator 和 Anaconda Prompt 在 Windows 上安装 OpenCV,但我得到了同样的错误: UnsatisfiableError: Th
我是一名优秀的程序员,十分优秀!