今天安装一个Python 第三方库时报了这个错:pip install xx 报错:ValueError: path ‘./‘ cannot end with ‘/‘

按照错误信息的路径找到最初始的那个文件  C:\Users\ellezhang\AppData\Roaming\Python\Python37\site-packages\setuptools\_distutils\util.py,打开,找到报错信息所在的行,然后根据你的出错路径添加以下代码:

if pathname.startswith('./'):
        paths = pathname.split('/')
        return '\\'+paths[-1] 

最终结果如图:

pip install xx 报错:ValueError: path ‘./‘ cannot end with ‘/‘ 

 第一张图中的框框里报什么错,就在代码中填什么路径。

相关文章:

  • 2021-05-12
  • 2021-05-29
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
猜你喜欢
  • 2021-11-02
  • 2021-10-11
  • 2022-01-14
  • 2021-07-09
  • 2022-02-04
  • 2021-10-20
  • 2021-06-16
相关资源
相似解决方案