For problems encountered in the process, find the following solution:
Transfer: https: //blog.csdn.net/manduner/article/details/82349788
Methods This article is reprinted from https://blog.csdn.net/qq_15192373/article/details/81231095 , the two methods Bowen provides a very practical, effective pro-test. Write this post, first, to everyone we encountered the same problem when can more quickly find practical solutions; Second, the original Bowen written wrong place was amended, and gives a summary of the tests using their own
2. Description of the problem
In the local environment through windows python program on pycharm remote debugging GPU server program following error:
2, the solution
(1) Method a:
1) Add the environment variable in Pycharm, the inverted triangle top right corner drop-down menu to enter the Edit configurations,
2) Open the re-add environment variables: Environment variables that column
3) increase: PYTHONUNBUFFERED = 1;
LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64;/usr/local/lib
After successfully added can be a normal operation. The downside of this approach is that every time a new file, you need to manually add environment variables.
(2) Method II:
1) Step 1 of Method 1
2) Select the left default - python, modify Environment variables that column
3) Step 3 with 1
This approach after each restart the computer, pycharm they need to reconfigure, is not very good
3, summary
(1) is recommended to use the second method, this method to create a new python file, the default environment variable is set before good, do not always create a python file need to add an environmental variable.
(2) see this post method when, python file comrades is certainly an error to be performed, the python for these files, you will need to follow the first method, manually add it, or else will complain. The second method only if you create a python file, the default will bring you good environment variable settings