pycharm使用conda虚拟环境解释器报错:Python packaging tools not found.

pycharm使用conda虚拟环境时无法导入包,在setting->project->python interpreter中发现Python packaging tools not found.

conda list后发现pip、setuptools均正确安装。

最后发现是anaconda与pycharm版本不匹配,我的conda版本4.5,pycharm为2024版本,将pycharm换成2022版本即可解决。

Collecting netcdf4 Using cached netCDF4-1.6.5.tar.gz (764 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333. ERROR: Command errored out with exit status 1: command: 'F:\tools\Python37\python.exe' 'F:\tools\Python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\LIUHUI~1\AppData\Local\Temp\tmpblwlq157' cwd: C:\Users\liuhuilong\AppData\Local\Temp\pycharm-packaging\netcdf4 Complete output (33 lines): reading from setup.cfg... HDF5_DIR environment variable not set, checking some standard locations .. checking C:\Users\liuhuilong\include ... hdf5 headers not found in C:\Users\liuhuilong\include checking /usr/local\include ... hdf5 headers not found in /usr/local\include checking /sw\include ... hdf5 headers not found in /sw\include checking /opt\include ... hdf5 headers not found in /opt\include checking /opt/local\include ... hdf5 headers not found in /opt/local\include checking /opt/homebrew\include ... hdf5 headers not found in /opt/homebrew\include checking /usr\include ... hdf5 headers not found in /usr\include Traceback (most recent call last): File "F:\tools\Python37\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in <module> main() File "F:\tools\Python37\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "F:\tools\Python37\lib\site-packages\pip\_vendor\pep517\
03-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值