- 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/
如主题所述,是否有可能没有 future 的问题?。基本上我发布此线程以供将来引用,以便人们可以观看该场景。mongodb 被限制为 2Gb 的原因是什么?能否请您指出引用资料,以便像我这样的菜鸟可以
我正在使用 Bootstrap 4 轮播。它适用于所有 Windows 和 Android 操作系统,但不适用于 Mac 和 iPhone 操作系统。有什么解决办法吗?这是我的代码github.com
Condition Synchinzation--条件同步 实现同步有两种方式:competition(compete for a variable that two processes al
1 定义:计算机资源虚拟化 服务器虚拟化主要通过软件技术将物理服务器的硬件资源抽象化,创建多个独立的虚拟服务器环境。 虚拟化技术是当今云计算、大数据和AI得以繁荣发展的核心基础技术
目录 内存管理硬件结构 早期内存的使用方法 分段 分页 逻辑地址,线性地址(intel架构) 虚拟地址 物理地址
页表的一些术语 现在Linux内核中支持四级页表的映射,我们先看下内核中关于页表的一些术语: 全局目录项,PGD(Page Global Directory) 上级目录项,PUD(
1. 文件路径 绝对路径 绝对路径 (absolute path) : 以一个盘符开头的路径,就是绝对路径 例如这里的 D:\java\IntelliJ IDEA Community Edition
1. 进程介绍 1.1 进程的概念 程序是由指令和数据组成的,但这些指令要运行,数据要读写,就必须将指令加载至 CPU,将数据加载至内存。在指令运行过程中还需要用到磁盘和网络等设备。进程就是用来加载指
1. 文件路径 绝对路径 绝对路径 (absolute path) : 以一个盘符开头的路径,就是绝对路径 例如这里的 D:\java\IntelliJ IDEA Community Edition
我有 REST APIManager 类 - 用于使用服务器 api 的单例。有返回用户Token实体的登录方法; 所有其他 API 方法都使用 token 来发出请求。登录后我应该在哪里存储该 to
当我在学习操作系统类(class)时,我不明白为什么下面代码的输出是这样的 代码: #include #include #include #include int main (int argc
我正在尝试在 C++ 中使用 fork() 和 wait() 系统调用。 我的代码非常简单。但是我收到以下错误: error C3861: 'fork': identifier not found 我
我需要播放不同格式的网络广播。我尝试使用 MPMoviePlayerController 播放广播,但它在 3-4 秒后停止。 var urlAddress = "http://streaming.r
多线程(进阶) 1. 常见的锁策略 1.1 乐观锁 悲观锁 乐观锁 : 总是假设最好的情况,每次去拿数据的时候都认为别人不会修改数据,但是在对数据提交更新的时候,再去判断这个数据在这个期间是否有别人对
如何让内存用起来? 内存使用:将程序放到内存中,PC指向开始地址 那就让首先程序进入内存 让程序从磁盘加载到内存中来,首先需要考虑要将程序代码安放在内存的什么位置 如果把入口地址直接放在0地址处,然后
操作系统 内存 HBase一定需要RAM! 64位 使用64位平台(和64位JVM)。 交换 注意交换,将swappiness设为0。 CPU 确保已将Hadoop设置为使用本机的硬件
我想编写一个脚本,将当前打开的 Windows 移动到某个位置。 理想情况下,我的程序应该是这样的: var window = FindWindow("Winamp"); window.setPos(
以下问题是我对操作系统的测试评论,但我不知道如何回答。我会第一次尝试解决他们的问题,但我也不知道如何开始。 Given the following information for an assembl
在操作系统方面我见过几次这个词。匿名内存 ,但我真的不知道,那是什么。 如果有人问我一些关于它的事情,我真的无法非常确定地说出那是什么。 我也搜索了它的解释,但不幸的是我还没有找到任何令人满意的东西。
在 Abraham Silberschatz 等人的“操作系统概念”第 9 版中,作者说: "Some operating systems support only static linking, i
我是一名优秀的程序员,十分优秀!