下载pandas(.etc)时could not find vswhere.exe

问题如下图,所创建的conda环境无法正常下载pandas==2.2.0

首先是命令行的报错来看本人是完全没有这个vswhere.exe的路径的,而且对于vscode的下载也是无脑安装(甚至还重装了一遍证明自己之前装的没毛病qwq)

后边在外网上看到的很多和我一样问题的人同样无法下载pandas==2.0.3以上的版本,然后尝试把pandas降了版本,但是后边安装scipy时候又有报错,搜到了似乎是因为python是32位的原因

如果有和我一样的uu们可以先

python -c "import platform; print(platform.architecture())"

如果是32位,说明创建的python版本是32位,我这个环境是创建在conda中的,所以可以在cmd中输入

conda info

输出中,platform是win-32,说明anaconda也是32位

就需要将anaconda切换成64位,csdn上有通过

set CONDA_FORCE_32BIT=1 #32bit
set CONDA_FORCE_32BIT=0 #64bit

来进行切换的,但这个方法在我的电脑上不行,后边在知乎中看到可以使用如下方法

conda activate <new_env> # <new_env>指你所创建的conda环境的名称
conda config --env --set subdir win-64 # 切换成64位的

此时在这个新的环境<new_env>中就重新conda info一下,就发现platform变成win-64了,此时

conda install python==3.10

就可以在环境中安装64位的python,后续的包的安装也没有问题了~

参考链接

https://github.com/conda/conda/issues/6405

https://zhuanlan.zhihu.com/p/523510168#

https://github.com/conda/conda/issues/6405

https://blog.csdn.net/chentianveiko/article/details/107100302#

[root@master Python-3.12.3]# pip3 install pyspark==3.5.0 jieba transformers pandas flask hdfs 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 HTT PS URL because the SSL module is not available.")': /simple/pyspark/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTT PS URL because the SSL module is not available.")': /simple/pyspark/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTT PS URL because the SSL module is not available.")': /simple/pyspark/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTT PS URL because the SSL module is not available.")': /simple/pyspark/WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTT PS URL because the SSL module is not available.")': /simple/pyspark/Could not fetch URL https://pypi.org/simple/pyspark/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', por t=443): Max retries exceeded with url: /simple/pyspark/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skippingERROR: Could not find a version that satisfies the requirement pyspark==3.5.0 (from versions: none) ERROR: No matching distribution found for pyspark==3.5.0 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org',
03-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值