python的环境问题相关
1. 在虚拟环境中安装ipykernel时的报错信息:
conda install -n pyart_env ipykernel --update-deps --force-reinstall
出现:
CondaVerificationError: The package for debugpy located at D:\Anaconda\pkgs\debugpy-1.6.6-py38hd3f51b4_0
appears to be corrupted. The path 'Lib/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe'
specified in the package manifest cannot be found.
CondaVerificationError: The package for pywin32 located at D:\Anaconda\pkgs\pywin32-304-py38hd3f51b4_2
appears to be corrupted. The path 'Lib/site-packages/win32/pythonservice.exe'
specified in the package manifest cannot be found.
解决方法:
step1: 删除所有package和缓存包
conda clean --packages --tarballs
然后再安装时又出现了错误InvalidArchiveError('Error with archive D:\\Anaconda\\pkgs\\lcms2-2.14-ha5c8aab_1c5up1cre\\pkg-lcms2-2.14-ha5c8aab_1.tar.zst. You probably need to delete and re-download or re-create this file,重新下载再安装也没有解决,就先没有管这个环境了。
2. import xarray时报错:
AttributeError: module 'dask.array' has no attribute 'lib'
解决方法:从2022.6.0降级到2022.3.0
pip install --upgrade xarray==2022.3.0
3. conda install pyart 时很多inconsistency的错误:
换为pip install。
装不上库的时候优先尝试这个方法。
4. 常用库的安装
- pytda:GitHub - nasa/PyTDA: Python Turbulence Detection Algorithm (PyTDA)
- 下载压缩包,而后“Run
python setup.py install
from the command line in the main PyTDA folder”
- 下载压缩包,而后“Run
- csu_radartools:GitHub - CSU-Radarmet/CSU_RadarTools: A module of independent functions to do precipitation retrievals from polarimetric radar data
- 也是解压之后在目录中执行
python setup.py install
- 也是解压之后在目录中执行
5. 'gdal_translate ' is not recognized as an internal or external command, operable program or batch file.
解决方法:找到了可执行文件的路径(D:\Anaconda\Lib\site-packages\osgeo),运行D:\Anaconda\Lib\site-packages\osgeo\gdal_translate XXX 即可。也可将其加入到环境变量当中。
6. 离线查看vscode版本号
go to Help->About
python的环境问题相关相关推荐
- boost::python::detail::is_string_literal相关的测试程序
boost::python::detail::is_string_literal相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::detail::is_string_l ...
- boost::python::converter::arg_to_python相关的测试程序
boost::python::converter::arg_to_python相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::converter::arg_to_py ...
- boost::python::detail::result相关的测试程序
boost::python::detail::result相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::detail::result相关的测试程序 C++实现代码 ...
- boost::python::converter::is_object_manager相关的测试程序
boost::python::converter::is_object_manager相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::converter::is_ob ...
- boost::python::detail::if_相关的测试程序
boost::python::detail::if_相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::detail::if_相关的测试程序 C++实现代码 #inclu ...
- boost::python::detail::copy_ctor_mutates_rhs相关的测试程序
boost::python::detail::copy_ctor_mutates_rhs相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::detail::copy_ct ...
- boost::python::detail::is_borrowed_ptr相关的测试程序
boost::python::detail::is_borrowed_ptr相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::detail::is_borrowed_p ...
- boost::python::converter::as_to_python_function相关的测试程序
boost::python::converter::as_to_python_function相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::converter::a ...
- boost::python::numpy::unary_ufunc相关的测试程序
boost::python::numpy::unary_ufunc相关的测试程序 实现功能 C++实现代码 实现功能 boost::python::numpy::unary_ufunc相关的测试程序 ...
最新文章
- 一,初次接触html+css需要注意的小问题
- 转: object 和embed 标签播放flash
- NSURL 基本方法 absoluteString
- 多元有序logistic回归_医学统计与R语言:多分类logistic回归HosmerLemeshow拟合优度检验...
- 全志A33-串口的使用
- java BigDecimal八种舍入模式
- 流行的编程语言及其趋势
- rocketmq怎么保证数据不会重复_RocketMQ保证信息有序性和防止重复
- matlab fftshift_MATLAB信号频谱分析FFT详解
- scp带密码后台传输
- java imap 乱码_php imap/pop3 接收邮件类,解决中文乱码
- 浏览器了解(三)CSS解析
- Godaddy 上的域名服务器状态查询
- 基于webview的选择滑动控件(PC和wap版)
- 解决Oracle错误ORA-15061一例
- 【总结】大规模数据(300万条)测试时,需要注意的问题。
- [ZJOI2014]力
- 苍南二职计算机专业分数线,苍南第二职业中专2021年招生录取分数线
- Atitit 常见聚合运算与算法 目录 1.1. 单行函数,vs 那就是聚合函数	1 1.2. 聚合分类 哈希聚合 标量聚合 流聚合	1 1.3. 常见聚合函数 mysql oracle等	1 r
- myeclipse黑色主题怎么还原