score_inverse_problems运行环境,pycharm重新安装,jax,jaxlib的GPU版本安装-230831

尝试运行https://github.com/yang-song/score_inverse_problems

pycharm2019不支持python3.10,其实后来我用来3.8......

pycharm2022.3.3的安装,涉及激活(淘宝5元),搜狗拼音输入(shift不能切换输入法,后自动好了)

刚开始使用sudo sh pycharm.sh的方法,不方便,还有报错,最后尝试直接修改原来的desktop,竟然可以了~~

环境tf2的python为3.6.9,版本较低,诸多软件不能重新安装

一开始直接按照pip install -r requirements.txt

jax一直报错WARNING - No GPU/TPU found, falling back to CPU.

tensorflow一直报错libcusoler.11.o not found

经过多番尝试,应该是安装的不是GPU版的jax,解决方案是

安装了python=3.8的虚拟环境,不知道这个有没有关系

安装tensorflow=2.5.0(原来2.8.0,可能需要cuda11)

pip install --upgrade jax jaxlib==0.1.71+cuda101 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
https://stackoverflow.com/questions/65486358/unable-to-install-specific-jax-jaxlib-gpu-version#:~:text=You%20can%20use%20something%20like%3A%20%24%20pip%20install,the%20available%20wheel%20files%20and%20then%20install%20those.

bash 复制代码
pip install --upgrade jax==0.2.18 jaxlib==0.1.69+cuda101 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

终于成功,泪流!

相关推荐
哈里谢顿39 分钟前
Python 高并发服务限流终极方案:从原理到生产落地(2026 实战指南)
python
用户83562907805115 小时前
无需 Office:Python 批量转换 PPT 为图片
后端·python
markfeng817 小时前
Python+Django+H5+MySQL项目搭建
python·django
GinoWi17 小时前
Chapter 2 - Python中的变量和简单的数据类型
python
JordanHaidee18 小时前
Python 中 `if x:` 到底在判断什么?
后端·python
ServBay18 小时前
10分钟彻底终结冗长代码,Python f-string 让你重获编程自由
后端·python
闲云一鹤18 小时前
Python 入门(二)- 使用 FastAPI 快速生成后端 API 接口
python·fastapi
Rockbean19 小时前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
曲幽20 小时前
FastAPI + Ollama 实战:搭一个能查天气的AI助手
python·ai·lora·torch·fastapi·web·model·ollama·weatherapi
用户606487671889621 小时前
国内开发者如何接入 Claude API?中转站方案实战指南(Python/Node.js 完整示例)
人工智能·python·api