I've been programming in various environments so far, but since I met JetBrains, I've been captivated by JetrBrains' IDE.
In particular, PyCharm is the one that many people give the highest evaluation.
Recommendation of the strongest Python development environment PyCharm
I used PyCharm to run Tensorflow, a machine learning framework.
An error occurred when trying to run the sample code after completing all the setup.
Install CUDA when using Tensorflow with NVIDIA GPU.
I got an error saying that CUDA is missing.
After a lot of research, it seems that certain environment variables are overwritten on PyCharm.
The CUDA library PATH is written to LD_LIBARARY_PARH.
The LD_LIBRARY_PATH was overwritten.
Run -> Edit Configurations -> Python -> [your project] -> Environment variables
It was solved by defining LD_LIBRARY_PATH in and adding the desired path.
1:Run -> Edit Configurations
2: Python -> [your project name] -> Environment variables
3: Add Environment Variables Write the PATH of the library that PyCharm should recognize in / add / path / here.
that's all.
Recommended Posts