簡體   English   中英

無法使用 Anaconda 安裝 spacy

[英]Unable to install spacy with Anaconda

我的 pycharm 顯示的錯誤是這樣的:

執行的命令:

C:\Users\Felipe\Anaconda3\Scripts\conda.exe install -p C:/Users/Felipe/Anaconda3/envs/NLP spacy -y

發生錯誤:

UnsatisfiableError:發現以下規范相互不兼容

命令 output:

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed
Building graph of deps:   0%|          | 0/3 [00:00<?, ?it/s]
Examining python=3.8:   0%|          | 0/3 [00:00<?, ?it/s]  
Examining spacy:  33%|###3      | 1/3 [00:00<00:00, 21.35it/s]
Examining @/win-64::__cuda==11.0=0:  67%|######6   | 2/3 [00:01<00:00,  1.95it/s]
Examining @/win-64::__cuda==11.0=0: 100%|##########| 3/3 [00:01<00:00,  2.92it/s]
                                                                                 
Determining conflicts:   0%|          | 0/3 [00:00<?, ?it/s]
Examining conflict for python spacy:   0%|          | 0/3 [00:00<?, ?it/s]
Examining conflict for __cuda:  33%|###3      | 1/3 [00:00<00:00,  5.01it/s]
Examining conflict for __cuda:  67%|######6   | 2/3 [00:00<00:00, 10.02it/s]
                                                                            
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:
  - feature:/win-64::__cuda==11.0=0
  - feature:|@/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0

我真的需要弄清楚這一點才能繼續學習!

要使用 conda 安裝最新版本的 spacy(包括 python 3.8 的構建),請從 conda conda-forge forge 頻道安裝 spacy:

conda install -c conda-forge spacy

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM