- python执行路径:
python -c "import sys; print(sys.executable)"
- numpy库include路径:
python -c "import numpy; print (numpy.get_include())"
- python第三方库路径:
from distutils.sysconfig import get_python_lib; print(get_python_lib())"
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/python/274207.html