PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
11.72k stars 2.86k forks source link

[Question]: 无法安装PaddleNLP #8673

Closed aLittleGreens closed 2 days ago

aLittleGreens commented 6 days ago

请提出你的问题

caiyukuideMacBook-Pro:PaddleNLP caiyukui$ pip install --upgrade paddlenlp>=2.0.0rc -i https://pypi.org/simple

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ ERROR: Could not find a version that satisfies the requirement paddlenlp (from versions: none) ERROR: No matching distribution found for paddlenlp

[notice] A new release of pip is available: 23.1.2 -> 24.1 [notice] To update, run: pip install --upgrade pip caiyukuideMacBook-Pro:PaddleNLP caiyukui$ caiyukuideMacBook-Pro:PaddleNLP caiyukui$ pip install --upgrade paddlenlp>=2.0.0rc -i https://pypi.org/simple WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/paddlenlp/ ERROR: Could not find a version that satisfies the requirement paddlenlp (from versions: none) ERROR: No matching distribution found for paddlenlp

DrownFish19 commented 5 days ago

建议更换pip源,例如使用清华源 -i https://pypi.tuna.tsinghua.edu.cn/simple。 或者使用源码安装

git clone https://github.com/PaddlePaddle/PaddleNLP.git
cd PaddleNLP && python setup.py install
aLittleGreens commented 5 days ago

Thanks for your message