HIT-SCIR / ltp

Language Technology Platform
http://ltp.ai
4.98k stars 1.04k forks source link

PyTorch和LTP安装问题 #706

Closed gbl7212 closed 4 months ago

gbl7212 commented 4 months ago

**

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch transformers

* Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: torch in e:\anaconda\lib\site-packages (2.3.1+cu118) Requirement already satisfied: transformers in e:\anaconda\lib\site-packages (4.42.3) Requirement already satisfied: filelock in e:\anaconda\lib\site-packages (from torch) (3.13.1) Requirement already satisfied: typing-extensions>=4.8.0 in e:\anaconda\lib\site-packages (from torch) (4.11.0) Requirement already satisfied: sympy in e:\anaconda\lib\site-packages (from torch) (1.12) Requirement already satisfied: networkx in e:\anaconda\lib\site-packages (from torch) (3.2.1) Requirement already satisfied: jinja2 in e:\anaconda\lib\site-packages (from torch) (3.1.4) Requirement already satisfied: fsspec in e:\anaconda\lib\site-packages (from torch) (2024.2.0) Requirement already satisfied: mkl<=2021.4.0,>=2021.1.1 in e:\anaconda\lib\site-packages (from torch) (2021.4.0) Requirement already satisfied: huggingface-hub<1.0,>=0.23.2 in e:\anaconda\lib\site-packages (from transformers) (0.23.4) Requirement already satisfied: numpy<2.0,>=1.17 in e:\anaconda\lib\site-packages (from transformers) (1.26.3) Requirement already satisfied: packaging>=20.0 in e:\anaconda\lib\site-packages (from transformers) (23.2) Requirement already satisfied: pyyaml>=5.1 in e:\anaconda\lib\site-packages (from transformers) (6.0.1) Requirement already satisfied: regex!=2019.12.17 in e:\anaconda\lib\site-packages (from transformers) (2024.5.15) Requirement already satisfied: requests in e:\anaconda\lib\site-packages (from transformers) (2.32.2) Requirement already satisfied: safetensors>=0.4.1 in e:\anaconda\lib\site-packages (from transformers) (0.4.3) Requirement already satisfied: tokenizers<0.20,>=0.19 in e:\anaconda\lib\site-packages (from transformers) (0.19.1) Requirement already satisfied: tqdm>=4.27 in e:\anaconda\lib\site-packages (from transformers) (4.66.4) Requirement already satisfied: intel-openmp==2021. in e:\anaconda\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch) (2021.4.0) Requirement already satisfied: tbb==2021.* in e:\anaconda\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch) (2021.11.0) Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from tqdm>=4.27->transformers) (0.4.6) Requirement already satisfied: MarkupSafe>=2.0 in e:\anaconda\lib\site-packages (from jinja2->torch) (2.1.3) Requirement already satisfied: charset-normalizer<4,>=2 in e:\anaconda\lib\site-packages (from requests->transformers) (2.0.4) Requirement already satisfied: idna<4,>=2.5 in e:\anaconda\lib\site-packages (from requests->transformers) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in e:\anaconda\lib\site-packages (from requests->transformers) (2.2.1) Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda\lib\site-packages (from requests->transformers) (2024.6.2) Requirement already satisfied: mpmath>=0.19 in e:\anaconda\lib\site-packages (from sympy->torch) (1.3.0)

**

C:\Users>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ltp ltp-core ltp-extension

* Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: ltp in e:\anaconda\lib\site-packages (4.2.14) Requirement already satisfied: ltp-core in e:\anaconda\lib\site-packages (0.1.4) Requirement already satisfied: ltp-extension in e:\anaconda\lib\site-packages (0.1.13) Requirement already satisfied: huggingface-hub>=0.8.0 in e:\anaconda\lib\site-packages (from ltp) (0.23.4) Requirement already satisfied: torch>=1.6.0 in e:\anaconda\lib\site-packages (from ltp-core) (2.3.1+cu118) Requirement already satisfied: transformers>=4.0.0 in e:\anaconda\lib\site-packages (from ltp-core) (4.42.3) Requirement already satisfied: filelock in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (3.13.1) Requirement already satisfied: fsspec>=2023.5.0 in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (2024.2.0) Requirement already satisfied: packaging>=20.9 in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (23.2) Requirement already satisfied: pyyaml>=5.1 in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (6.0.1) Requirement already satisfied: requests in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (2.32.2) Requirement already satisfied: tqdm>=4.42.1 in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (4.66.4) Requirement already satisfied: typing-extensions>=3.7.4.3 in e:\anaconda\lib\site-packages (from huggingface-hub>=0.8.0->ltp) (4.11.0) Requirement already satisfied: sympy in e:\anaconda\lib\site-packages (from torch>=1.6.0->ltp-core) (1.12) Requirement already satisfied: networkx in e:\anaconda\lib\site-packages (from torch>=1.6.0->ltp-core) (3.2.1) Requirement already satisfied: jinja2 in e:\anaconda\lib\site-packages (from torch>=1.6.0->ltp-core) (3.1.4) Requirement already satisfied: mkl<=2021.4.0,>=2021.1.1 in e:\anaconda\lib\site-packages (from torch>=1.6.0->ltp-core) (2021.4.0) Requirement already satisfied: numpy<2.0,>=1.17 in e:\anaconda\lib\site-packages (from transformers>=4.0.0->ltp-core) (1.26.3) Requirement already satisfied: regex!=2019.12.17 in e:\anaconda\lib\site-packages (from transformers>=4.0.0->ltp-core) (2024.5.15) Requirement already satisfied: safetensors>=0.4.1 in e:\anaconda\lib\site-packages (from transformers>=4.0.0->ltp-core) (0.4.3) Requirement already satisfied: tokenizers<0.20,>=0.19 in e:\anaconda\lib\site-packages (from transformers>=4.0.0->ltp-core) (0.19.1) Requirement already satisfied: intel-openmp==2021. in e:\anaconda\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch>=1.6.0->ltp-core) (2021.4.0) Requirement already satisfied: tbb==2021.* in e:\anaconda\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch>=1.6.0->ltp-core) (2021.11.0) Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from tqdm>=4.42.1->huggingface-hub>=0.8.0->ltp) (0.4.6) Requirement already satisfied: MarkupSafe>=2.0 in e:\anaconda\lib\site-packages (from jinja2->torch>=1.6.0->ltp-core) (2.1.3) Requirement already satisfied: charset-normalizer<4,>=2 in e:\anaconda\lib\site-packages (from requests->huggingface-hub>=0.8.0->ltp) (2.0.4) Requirement already satisfied: idna<4,>=2.5 in e:\anaconda\lib\site-packages (from requests->huggingface-hub>=0.8.0->ltp) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in e:\anaconda\lib\site-packages (from requests->huggingface-hub>=0.8.0->ltp) (2.2.1) Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda\lib\site-packages (from requests->huggingface-hub>=0.8.0->ltp) (2024.6.2) Requirement already satisfied: mpmath>=0.19 in e:\anaconda\lib\site-packages (from sympy->torch>=1.6.0->ltp-core) (1.3.0)

但是PCcharm上显示没有torch软件包,ltp也是一样。如下图 屏幕截图 2024-07-06 193233

屏幕截图 2024-07-06 192932