What are PYTHONPATH and PYTHON_LIBRARY_PATH?

I installed the package and cannot make it work. I know that one of the possible causes of this problem is the incorrect (or nonexistent) values ​​of certain environment variables. In particular, I know that I need to install PYTHONPATHand PYTHON_LIBRARY_PATH. To set the correct values ​​for these variables, I need to know their value.

For example, after installing the package, I received a directory with a large number of * .dll files. Should I use the name of this directory as a value for one of the two above environment variables?

I also have another directory ( C:\OpenCV2.2\Python2.7\Lib\site-packages) that contains only two files: cv.liband cv.pyd. Should I use this directory as a value for one of the above environment variables (people recommend this, but I don't understand why).

+3
source share
1 answer
  • PYTHONPATH documented
  • PYTHON_LIBRARY_PATH- this is something that I have never heard of. This variable is not set in my environment and is not mentioned in all documentation. I also searched all the python source code, and this line is also not mentioned there. Where did you see this variable? Maybe this is a certain thing related to the seller?
+3
source

Source: https://habr.com/ru/post/1793592/


All Articles