Python 在Windows上的PyCharm上安装软件包
我正在尝试安装一些软件包,但由于某些原因,我一生都无法实现。我的设置是,我在Windows上与Conda一起使用PyCharm。我想安装的所有非标准软件包都有这些问题(比如numpy安装就可以了),但作为参考,我将使用这个软件包。我将详细介绍我尝试过的所有方法:Python 在Windows上的PyCharm上安装软件包,python,windows,pycharm,anaconda,Python,Windows,Pycharm,Anaconda,我正在尝试安装一些软件包,但由于某些原因,我一生都无法实现。我的设置是,我在Windows上与Conda一起使用PyCharm。我想安装的所有非标准软件包都有这些问题(比如numpy安装就可以了),但作为参考,我将使用这个软件包。我将详细介绍我尝试过的所有方法: 进入文件>设置>Python解释器>安装然后搜索pyphy-找不到它 在上面的链接中将的URL添加为PyCharm中的存储库,并再次搜索包;再次没有找到 从上面的GitHub下载.tar.gz,并将包含该文件的文件夹作为存储库添加到Py
文件>设置>Python解释器>安装
然后搜索pyphy-找不到它pyphi
——同样,没有找到任何内容pip安装pyphi
,这会给出错误:找不到满足pyphy要求的版本(从版本:无)
conda install-c wmayner pyphi
,它给出了一个很长的错误报告编辑:长错误消息是。编辑2:错误消息现在以文本形式包含在本文末尾.tar.gz
文件,尝试conda install-c local pyphi-1.2.0.tar.gz
,它提供.tar.gz
文件放在安装conda虚拟环境的目录中,然后将终端定向到那里,然后尝试python pip安装pyphi-1.2.0.tar.gz
(MyPy) C:\Users\Dan Goldwater\Dropbox\Nottingham\GPT NNs\MyPy>conda install -c wmayner pyphi
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.
Examining @/win-64::__cuda==11.0=0: 33%|█████████████████████████████████████████████████████▎ | 1/3 [00:00<00:00, 3.42it/s]/
failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\conda\cli\install.py", line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 117, in solve_for_transaction
should_retry_solve)
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 158, in solve_for_diff
force_remove, should_retry_solve)
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 275, in solve_final_state
ssc = self._add_specs(ssc)
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 696, in _add_specs
raise UnsatisfiableError({})
conda.exceptions.UnsatisfiableError:
Did not find conflicting dependencies. If you would like to know which
packages conflict ensure that you have enabled unsatisfiable hints.
conda config --set unsatisfiable_hints True
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\conda\exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:\Anaconda\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Anaconda\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
return getattr(module, func_name)(args, parser)
File "C:\Anaconda\lib\site-packages\conda\cli\main_install.py", line 20, in execute
install(args, parser, 'install')
File "C:\Anaconda\lib\site-packages\conda\cli\install.py", line 299, in install
should_retry_solve=(repodata_fn != repodata_fns[-1]),
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 117, in solve_for_transaction
should_retry_solve)
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 158, in solve_for_diff
force_remove, should_retry_solve)
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 275, in solve_final_state
ssc = self._add_specs(ssc)
File "C:\Anaconda\lib\site-packages\conda\core\solve.py", line 694, in _add_specs
ssc.r.find_conflicts(spec_set)
File "C:\Anaconda\lib\site-packages\conda\resolve.py", line 347, in find_conflicts
bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs)
File "C:\Anaconda\lib\site-packages\conda\resolve.py", line 507, in build_conflict_map
root, search_node, dep_graph, num_occurances)
File "C:\Anaconda\lib\site-packages\conda\resolve.py", line 369, in breadth_first_search_for_dep_graph
last_spec = MatchSpec.union((path[-1], target_paths[-1][-1]))[0]
File "C:\Anaconda\lib\site-packages\conda\models\match_spec.py", line 481, in union
return cls.merge(match_specs, union=True)
File "C:\Anaconda\lib\site-packages\conda\models\match_spec.py", line 475, in merge
reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
File "C:\Anaconda\lib\site-packages\conda\models\match_spec.py", line 475, in <lambda>
reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
File "C:\Anaconda\lib\site-packages\conda\models\match_spec.py", line 502, in _merge
final = this_component.union(that_component)
File "C:\Anaconda\lib\site-packages\conda\models\match_spec.py", line 764, in union
return '|'.join(options)
TypeError: sequence item 0: expected str instance, Channel found
`$ C:\Anaconda\Scripts\conda-script.py install -c wmayner pyphi`
environment variables:
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=MyPy
CONDA_EXE=C:\Anaconda\condabin\..\Scripts\conda.exe
CONDA_EXES="C:\Anaconda\condabin\..\Scripts\conda.exe"
CONDA_PREFIX=C:\Anaconda\envs\MyPy
CONDA_PROMPT_MODIFIER=(MyPy)
CONDA_ROOT=C:\Anaconda
CONDA_SHLVL=1
CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0
DOCKER_TOOLBOX_INSTALL_PATH=C:\Program Files\Docker Toolbox
HOMEPATH=\Users\Dan Goldwater
MOZ_PLUGIN_PATH=C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\
NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\
PATH=C:\Anaconda;C:\Anaconda\Library\mingw-w64\bin;C:\Anaconda\Library\usr\
bin;C:\Anaconda\Library\bin;C:\Anaconda\Scripts;C:\Anaconda\bin;C:\Ana
conda\envs\MyPy;C:\Anaconda\envs\MyPy\Library\mingw-w64\bin;C:\Anacond
a\envs\MyPy\Library\usr\bin;C:\Anaconda\envs\MyPy\Library\bin;C:\Anaco
nda\envs\MyPy\Scripts;C:\Anaconda\envs\MyPy\bin;C:\Anaconda\condabin;C
:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin;C:\Program
Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\libnvvp;.;C:\Program
Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WI
NDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32
\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R)
Management Engine Components\IPT;C:\Program Files\Intel\Intel(R)
Management Engine Components\IPT;C:\Program Files\MiKTeX
2.9\miktex\bin\x64;C:\Program
Files\MATLAB\R2017a\runtime\win64;C:\Program
Files\MATLAB\R2017a\bin;C:\Program Files\Calibre2;C:\Program
Files\PuTTY;C:\Program Files (x86)\OpenSSH\bin;C:\Program
Files\Git\cmd;C:\Program
Files\Golem;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft VS
Code\bin;C:\Program Files (x86)\Wolfram
Research\WolframScript;C:\Program Files\NVIDIA Corporation\Nsight
Compute 2020.1.2;C:\Program Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA Nv
DLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDO
WS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Prog
ram Files\dotnet;C:\Users\Dan Goldwater\AppData\Local\Programs\Python\
Python38-32\Scripts;C:\Users\Dan
Goldwater\AppData\Local\Programs\Python\Python38-32;C:\Users\Dan
Goldwater\AppData\Local\Microsoft\WindowsApps;.;C:\Program
Files\Microsoft VS Code\bin;C:\Program Files\Docker
Toolbox;C:\texlive\2018\bin\win32;C:\Users\Dan
Goldwater\AppData\Local\Pandoc;C:\Program Files\JetBrains\PyCharm
Community Edition 2020.1.2\bin;.
PSMODULEPATH=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
active environment : MyPy
active env location : C:\Anaconda\envs\MyPy
shell level : 1
user config file : C:\Users\Dan Goldwater\.condarc
populated config files : C:\Users\Dan Goldwater\.condarc
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages : __cuda=11.0
base environment : C:\Anaconda (writable)
channel URLs : https://conda.anaconda.org/wmayner/win-64
https://conda.anaconda.org/wmayner/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Anaconda\pkgs
C:\Users\Dan Goldwater\.conda\pkgs
C:\Users\Dan Goldwater\AppData\Local\conda\conda\pkgs
envs directories : C:\Anaconda\envs
C:\Users\Dan Goldwater\.conda\envs
C:\Users\Dan Goldwater\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.19041
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
(MyPy)C:\Users\Dan Goldwater\Dropbox\Nottingham\GPT NNs\MyPy>conda安装-C wmayner pyphi
收集包元数据(current_repodata.json):完成
解决环境:初始冻结解决失败。用灵活的解决方法重试。
解决环境:使用当前_repodata.json中的repodata失败,将使用下一个repodata源重试。
收集包元数据(repodata.json):完成
解决环境:初始冻结解决失败。用灵活的解决方法重试。
解决环境:-
发现冲突!正在查找不兼容的包。
这可能需要几分钟。按CTRL-C以中止。
检查@/win-64::u cuda==11.0=0:33%|█████████████████████████████████████████████████████▎ | 1/3[00:00>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>错误报告您应该做类似的事情,但对于conda(用conda替换pip,并提供有效的URL)。这不是pypi包,默认情况下pip不知道它。为了回应@buran的上述评论,我使用
conda更新——名称基本conda
然后使用推荐的Windows安装,使用
conda install -c wmayner pyphi
现在给出了错误:
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 the existing python installation in your environment:
Specifications:
- pyphi -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
发现冲突!正在查找不兼容的包。
这可能需要几分钟。请按CTRL-C中止。
失败
不满意错误:发现以下规格
要与环境中现有的python安装不兼容,请执行以下操作:
规格:
-pyphi->python[version='>=3.5,=3.6,=3.7,建议您在第5项下显示的内容--conda:conda安装-c wmayner pyphi
。显示“长期错误报告”谢谢-它现在被编辑成包含相关截图的链接请不要发布代码、错误、输出等的图像。复制/粘贴为文本,格式正确。我建议更新conda
-看看它合并到了4.8.3中,你的版本是4.8.2是的,它在pypi上可用,但仅适用于linux和macos
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 the existing python installation in your environment:
Specifications:
- pyphi -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.