- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在 CentOS 7.2 上设置离线 conda 环境。
但是,当每次将包作为 Python 作为依赖项尝试创建新环境时(或者甚至在创建一个 nacked Python env 时)。 Conda throw conflict with Python,我猜这是指操作系统上可用的 Python。
[root@test01 ~]# conda search python
Loading channels: done
# Name Version Build Channel
python 3.6.3 h6c0c0dc_5 repo_Python
python 3.7.1 h0371630_7 repo_Python
[root@test01 ~]# conda create -n env_test1 python=3.6.3
Collecting package metadata: done
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- python=3.6.3
Use "conda search <package> --info" to see the dependencies for each package.
[root@test01 ~]# conda create -n env_test2 setuptools
Collecting package metadata: done
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- setuptools
Use "conda search <package> --info" to see the dependencies for each package.
[root@test01 ~]# conda search openssl
Loading channels: done
# Name Version Build Channel
openssl 1.0.2p h14c3975_0 repo_Python
openssl 1.1.1a h7b6447c_0 repo_Python
[root@test01 ~]# conda create -n env_test3 openssl
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: /opt/miniconda3/envs/env_test3
added / updated specs:
- openssl
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2018.12.5 | 0 123 KB
libgcc-ng-8.2.0 | hdf63c60_1 7.6 MB
openssl-1.1.1a | h7b6447c_0 5.0 MB
------------------------------------------------------------
Total: 12.8 MB
The following NEW packages will be INSTALLED:
ca-certificates repo_Python/linux-64::ca-certificates-2018.12.5-0
libgcc-ng repo_Python/linux-64::libgcc-ng-8.2.0-hdf63c60_1
openssl repo_Python/linux-64::openssl-1.1.1a-h7b6447c_0
Proceed ([y]/n)?
信息:
# conda info
active environment : None
shell level : 0
user config file : /root/.condarc
populated config files : /root/.condarc
conda version : 4.6.2
conda-build version : 3.17.8
python version : 3.7.1.final.0
base environment : /opt/miniconda3 (writable)
channel URLs : http://test01.<DN>/repo_Python/linux-64
http://test01.<DN>/repo_Python/noarch
package cache : /opt/miniconda3/pkgs
/root/.conda/pkgs
envs directories : /opt/miniconda3/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/4.6.2 requests/2.21.0 CPython/3.7.1 Linux/3.10.0-514.2.2.el7.x86_64 rhel/7.2 glibc/2.17
UID:GID : 0:0
netrc file : None
offline mode : False
这是我的详细输出:
[root@test01 ~]# conda create -n env_test11 python=3.6.3 -vvv
DEBUG conda.gateways.logging:set_verbosity(148): verbosity set to 3
TRACE conda.gateways.disk.test:file_path_is_writable(23): checking path is writable /opt/miniconda3/pkgs/urls.txt
DEBUG conda.core.package_cache_data:_check_writable(237): package cache directory '/opt/miniconda3/pkgs' writable: True
Solving environment: ...working... DEBUG conda.core.solve:solve_final_state(142): solving prefix /opt/miniconda3/envs/env_test11
specs_to_remove: frozenset()
specs_to_add: frozenset({MatchSpec(name=LowerStrMatch('python'), version=VersionSpec('3.6.3.*'))})
prune: False
TRACE conda.gateways.disk.test:file_path_is_writable(23): checking path is writable /root/.conda/pkgs/urls.txt
DEBUG conda.core.package_cache_data:_check_writable(237): package cache directory '/root/.conda/pkgs' writable: True
DEBUG conda.core.subdir_data:_load(222): Local cache timed out for http://test01.<DN>/repo_Python/noarch at /opt/miniconda3/pkgs/cache/f3c8ac6e.json
DEBUG urllib3.util.retry:from_int(210): Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
DEBUG urllib3.connectionpool:_new_conn(205): Starting new HTTP connection (1): test01.<DN>:80
DEBUG urllib3.connectionpool:_make_request(393): http://test01.<DN>:80 "GET /repo_Python/noarch/repodata.json HTTP/1.1" 304 0
DEBUG conda.core.subdir_data:fetch_repodata_remote_request(439):
>>GET /repo_Python/noarch/repodata.json HTTP
> User-Agent: conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/3.10.0-514.2.2.el7.x86_64 rhel/7.2 glibc/2.17
> Accept: */*
> Accept-Encoding: gzip, deflate, compress, identity
> Connection: keep-alive
> Content-Type: application/json
> If-Modified-Since: Wed, 06 Feb 2019 14:31:50 GMT
> If-None-Match: "67-5813a961bdfa9"
<<HTTP 304 Not Modified
< Date: Mon, 11 Feb 2019 09:32:22 GMT
< ETag: "67-5813a961bdfa9"
< Keep-Alive: timeout=5, max=100
< Server: Apache/2.4.6 (Red Hat Enterprise Linux)
< Connection: Keep-Alive
< Elapsed: 00:00.003788
DEBUG conda.core.subdir_data:_load(230): 304 NOT MODIFIED for 'http://test01.<DN>/repo_Python/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(82): touching path /opt/miniconda3/pkgs/cache/f3c8ac6e.json
DEBUG conda.core.subdir_data:_read_pickled(293): found pickle file /opt/miniconda3/pkgs/cache/f3c8ac6e.q
DEBUG conda.core.subdir_data:_load(222): Local cache timed out for http://test01.<DN>/repo_Python/linux-64 at /opt/miniconda3/pkgs/cache/c8dfbf8f.json
DEBUG urllib3.connectionpool:_make_request(393): http://test01.<DN>:80 "GET /repo_Python/linux-64/repodata.json HTTP/1.1" 304 0
DEBUG conda.core.subdir_data:fetch_repodata_remote_request(439):
>>GET /repo_Python/linux-64/repodata.json HTTP
> User-Agent: conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/3.10.0-514.2.2.el7.x86_64 rhel/7.2 glibc/2.17
> Accept: */*
> Accept-Encoding: gzip, deflate, compress, identity
> Connection: keep-alive
> Content-Type: application/json
> If-Modified-Since: Fri, 08 Feb 2019 10:58:26 GMT
> If-None-Match: "119dc-5815fd6a30c1a"
<<HTTP 304 Not Modified
< Date: Mon, 11 Feb 2019 09:32:22 GMT
< ETag: "119dc-5815fd6a30c1a"
< Keep-Alive: timeout=5, max=99
< Server: Apache/2.4.6 (Red Hat Enterprise Linux)
< Connection: Keep-Alive
< Elapsed: 00:00.001007
DEBUG conda.core.subdir_data:_load(230): 304 NOT MODIFIED for 'http://test01.<DN>/repo_Python/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(82): touching path /opt/miniconda3/pkgs/cache/c8dfbf8f.json
DEBUG conda.core.subdir_data:_read_pickled(293): found pickle file /opt/miniconda3/pkgs/cache/c8dfbf8f.q
DEBUG conda.resolve:bad_installed(763): Checking if the current environment is consistent
DEBUG conda.core.solve:solve_final_state(224): inconsistent dists: None
TRACE conda.core.solve:solve_final_state(262): specs_map with targets: OrderedDict()
DEBUG conda.resolve:get_reduced_index(252): Retrieving packages for:
- python=3.6.3
DEBUG conda.resolve:filter_group(277): python: pruned from 2 -> 1
DEBUG conda.resolve:filter_group(277): libgcc-ng: pruned from 2 -> 1
DEBUG conda.resolve:filter_group(277): libstdcxx-ng: pruned from 2 -> 1
DEBUG conda.resolve:filter_group(277): ncurses: pruned from 1 -> 0
DEBUG conda.resolve:gen_clauses(554): gen_clauses returning with clause count: 159
DEBUG conda.resolve:generate_spec_constraints(559): generate_spec_constraints returning with clause count: 159
DEBUG conda.common.logic:sat(435): Invoking SAT with clause count: 160
DEBUG conda.resolve:generate_spec_constraints(559): generate_spec_constraints returning with clause count: 159
DEBUG conda.common.logic:sat(435): Invoking SAT with clause count: 160
DEBUG conda.core.solve:solve_final_state(333): conflicting specs:
- python=3.6.3
DEBUG conda.core.solve:solve_final_state(343): final specs to add:
- python=3.6.3
DEBUG conda.resolve:solve(879): Solving for:
- python=3.6.3
DEBUG conda.resolve:gen_clauses(554): gen_clauses returning with clause count: 159
DEBUG conda.resolve:generate_spec_constraints(559): generate_spec_constraints returning with clause count: 159
DEBUG conda.common.logic:sat(435): Invoking SAT with clause count: 160
DEBUG conda.resolve:generate_spec_constraints(559): generate_spec_constraints returning with clause count: 159
DEBUG conda.common.logic:sat(435): Invoking SAT with clause count: 160
failed
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main_create.py", line 11, in execute
install(args, parser, 'create')
File "/opt/miniconda3/lib/python3.7/site-packages/conda/cli/install.py", line 235, in install
force_reinstall=context.force,
File "/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 518, in solve_for_transaction
force_remove, force_reinstall)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 451, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 344, in solve_final_state
solution = r.solve(tuple(final_environment_specs)) # return value is List[dist]
File "/opt/miniconda3/lib/python3.7/site-packages/conda/common/io.py", line 46, in decorated
return f(*args, **kwds)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/resolve.py", line 917, in solve
self.find_conflicts(specs)
File "/opt/miniconda3/lib/python3.7/site-packages/conda/resolve.py", line 244, in find_conflicts
raise UnsatisfiableError(bad_deps)
conda.exceptions.UnsatisfiableError: The following specifications were found to be in conflict:
- python=3.6.3
Use "conda info <package>" to see the dependencies for each package.
最佳答案
我终于知道出了什么问题了!这个问题其实很简单:创建一个新的 python env 需要 ncurses-6.1-hf484d3e_0.tar.bz2 而我的 repo 中只有 ncurses-6.1-he6710b0_1.tar.bz2 ...
只要我在我的 repo 中得到那个子版本,一切就都正常了!
我认为错误信息有点困惑,可以改进。
关于python - Conda 与操作系统冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54590276/
我的工作是将每条记录写入 Hadoop 映射中的 DynamoDB。 我无法使用具有 httpclient-4.2.5.jar 和 httpcore-4.2.5.jar 的 Hadoop 2.6 运行
我在 JavaScript 中嵌套了循环开关,例如: for (var i = 0; i < checkBoxIds.length; i++) { if ($('#' + checkB
我有一个文件夹被重命名的分支。现在我正在尝试合并从主干到这个分支的更改,但是在主干中修改的文件仍然在原始文件夹名称下,因此 svn 引发了树冲突。我该如何解决这个问题? 该文件夹已使用 svn ren
我在使用 jquery 暴露插件和 Masked 输入插件时遇到了问题。问题是它们都占用 $.mask 函数,从而导致冲突。但我非常需要这两个插件一起工作。我会将其中一个中的 $.mask 重命名为.
我正在尝试为我所有的 INPUT 元素做一个简单的 :focus 效果,就像这样: INPUT:focus { border-color: orange; } 这很好用,直到我将这段 CSS 添加到样
我是 javascript 的新手。 在 wordpress 上工作,我在自定义 js 中为我的主题输入了以下函数: document.getElementsByName("empty_cart")[
为什么有些 javascript 会与其他的发生冲突?我的意思是我一直在为图片库使用 javascript 代码,然后尝试在 jquery 中获取文本水印。为什么在使用 jquery 之后,画廊完全消
是否可以根据已知的输入值创建 MD5 碰撞? 所以例如我有输入字符串 abc与 MD5 900150983cd24fb0d6963f7d28e17f72 . 现在我想将字节添加到字符串 def获得相同
我在我的项目中使用原型(prototype): NodeParser.prototype.getChildren = function(parentContainer) { return fl
根据我对 merge 冲突的理解,当两个人更改了同一文件和/或修改了该文件中的同一行时,就会发生 merge 冲突。所以当我做一个 git pull origin master 我期望 merge 冲
iPad 上 Mobile Safari 中的 HTML5 模板。带 iScroll 的 Div 工作正常。 if/else 语句中还包含一个 jQuery 函数。该函数测试用户是否在 iScroll
我一直在尝试使 2 个脚本(1 个 mootol 和 1 个 jquery)在同一页面上工作,但没有成功。我一直在研究许多论坛等,但我仍然无法使这两个脚本同时工作。 这就是它在我的标题中的样子: /w
我想克隆带标题的问号。一切正常,但是当我将鼠标悬停在新问号上时,第一个问号上会出现工具提示。有什么想法吗? 我正在使用 jQuery 和醉酒的工具提示。 Demo here click here
好吧,我已经在一个 friend 的网站上工作了一段时间了。我的编码技能......值得怀疑,而且我遇到了很多问题。 目前我网站上的 jQuery 停止工作了,我找不到原因,并且我已尽一切努力让它工作
我想使用一个文件来保存所有#define 和常量:示例 #ifndef CONSTANTS_H_ #define CONSTANTS_H_ #include //OVERALL DEFS
我在我的表单中的所有 HTML 下都有一些验证码,这似乎阻止了我的复选框验证码的工作,一旦我在我的 HTML 下的代码周围添加/* */(使其不活动),我就得出了这个结论) 复选框验证代码开始正常工作
我是新手。我的页面上有两个 javascript/jquery。如果我使用第一个脚本,第二个脚本将不起作用。如果我删除第一个脚本,第二个脚本就可以正常工作。我不知道如何解决这个问题。我知道有一个“无冲
我是 Bison 新手,在处理 Shift/Reduce 冲突时遇到了麻烦... 我正在为C语言编写语法规则:ID是标识变量的标记,我编写此规则是为了确保即使将标识符写在括号中,也可以考虑它。 id
我目前正在使用 LibGdx 开发我的第一个 Android 游戏项目。这是一款 2D 迷宫游戏,您可以使用触摸输入从其中一个入口到其中一个导出“画出”一条线。世界本身是一个 TiledMap,目前仅
我正在尝试通过 javascript 完成表单验证,并在 #form# 标记中放置一个要执行的 .py 文件操作。但问题是,当我提交数据后,它不会重定向到 .py 操作。所以我摆脱了 preventd
我是一名优秀的程序员,十分优秀!