我创建了一个新的Conda Env:
conda create -n my_env pip python=3.8.8然后,使用激活我的env
conda activate my_env然后,如anaconda文档(here)所述,尝试使用以下命令安装pwntools:
conda install -c conda-forge pwntools我收到了这个错误消息:
D:\>conda install -c conda-forge pwntools
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::__win==0=0: 75%|███████████████████████████████████████ | 3/4 [00:00<00:00, 16.00it/s]-failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions我当前的规格:
conda version : 4.10.3
conda-build version : 3.21.4
python version : 3.8.8.final.0
virtual packages : __win=0=0
__archspec=1=x86_64
platform : win-64
user-agent : conda/4.10.3 requests/2.25.1 CPython/3.8.8 Windows/10 Windows/10.0.19041conda-forge已经在通道中了
'conda-forge' already in 'channels' list,这是我的env (conda列表)的详细信息
# Name Version Build Channel
ca-certificates 2021.9.30 haa95532_1
certifi 2021.10.8 py38haa95532_0
openssl 1.1.1l h2bbff1b_0
pip 21.0.1 py38haa95532_0
python 3.8.8 hdbf39b2_5
setuptools 58.0.4 py38haa95532_0
sqlite 3.36.0 h2bbff1b_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wheel 0.37.0 pyhd3eb1b0_1
wincertstore 0.2 py38haa95532_2我真的不明白这个错误的含义,因为我不想在接下来的六个月里因为一个糟糕的变通方法而受到任何环境错误的影响,所以我更愿意征求一些建议。
显然,这个错误并不常见(我已经向pwntools discord channel寻求帮助)。
有没有人可以帮我理解这个错误的含义,以及可行的解决方法?
谢谢!
发布于 2021-10-19 14:15:27
使用mamba,问题就更清楚了(我已经在环境创建行中添加了pwntools:
(base) C:\Users\FlyingTeller>mamba create -n my_env -c conda-forge pip python=3.8.8 pwntools
__ __ __ __
/ \ / \ / \ / \
/ \/ \/ \/ \
███████████████/ /██/ /██/ /██/ /████████████████████████
/ / \ / \ / \ / \ \____
/ / \_/ \_/ \_/ \ o \__,
/ _/ \_____/ `
|/
███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗
████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
██╔████╔██║███████║██╔████╔██║██████╔╝███████║
██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝
mamba (0.16.0) supported by @QuantStack
GitHub: https://github.com/mamba-org/mamba
Twitter: https://twitter.com/QuantStack
█████████████████████████████████████████████████████████████
WARNING: A directory already exists at the target location 'C:\Users\FlyingTeller\miniconda3\envs\my_env'
but it is not a conda environment.
Continue creating environment (y/[n])? y
Looking for: ['pip', 'python=3.8.8', 'pwntools']
conda-forge/win-64 Using cache
conda-forge/noarch Using cache
pkgs/r/noarch [====================] (00m:00s) No change
pkgs/msys2/win-64 [====================] (00m:00s) No change
pkgs/main/win-64 [====================] (00m:00s) No change
pkgs/main/noarch [====================] (00m:00s) No change
pkgs/r/win-64 [====================] (00m:00s) No change
pkgs/msys2/noarch [====================] (00m:00s) No change
Encountered problems while solving:
- nothing provides ncurses needed by pwntools-4.3.1-pyh44b312d_0因此,问题是pwntools的依赖项在windows上不能从任何已配置的通道中获得。在这种情况下,不幸的是,你不太幸运地从conda安装,因为你不知道有任何在windows上提供ncurses的通道。
您也许可以使用pip让它工作,至少我可以这样做。
pip install pwntools创建环境后
https://stackoverflow.com/questions/69632242
复制相似问题