Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python xhtml2pdf pip安装失败_Python_Pip_Xhtml2pdf - Fatal编程技术网

Python xhtml2pdf pip安装失败

Python xhtml2pdf pip安装失败,python,pip,xhtml2pdf,Python,Pip,Xhtml2pdf,在命令提示符中键入pip install xthml2pdf时,我看到以下错误消息: ERROR: Could not find a version that satisfies the requirement xhtml2pdf (from versions: none) ERROR: No matching distribution found for xhtml2pdf Could not fetch URL https://pypi.org/simple/pip/: There was

在命令提示符中键入
pip install xthml2pdf
时,我看到以下错误消息:

ERROR: Could not find a version that satisfies the requirement xhtml2pdf (from versions: none)
ERROR: No matching distribution found for xhtml2pdf
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
在研究了这个问题之后,我尝试了
pip安装“xhtml2pdf==0.2.4”
pip安装html5lib==1.0b8
以及使用conda安装,但我仍然无法安装这个包

我使用的是Windows机器,而且我对python还相当陌生,所以我没有安装很多软件包,可能缺少一些依赖项。不过,我假设这些应该作为
pip install xhtml2pdf
命令的一部分进行安装


是否有其他人遇到过此问题并知道修复方法?

您的pip似乎无法使用SSL。尝试将Anaconda3添加到您的路径中-感谢您的回复,我无法使用文档使其正常工作,但我使用了“cd C:\……\Anaconda3”,然后是pip install命令,我仍然收到与上述相同的错误消息是的,所有依赖项都是使用pip install自动安装的。这听起来像是pip有问题,但听起来不像是xhtml2pdf有问题。您可以安装其他软件包而没有问题吗?您是否尝试过更新您的pip安装?看起来我无法使用pip安装安装其他软件包,因为它会给我相同的错误消息。我已将我的目录更改为最新Python安装的位置,并键入Python-mpipinstall--upgrade pip but it;s说我的pip安装是最新的(20.2.3)?