Python: PIP install path, what is the correct location for this and other addons?

后端 未结 3 1093
不思量自难忘°
不思量自难忘° 2021-02-12 22:41

I have recently had a few problems with my Python installation and as a result I have just reinstalled python and am trying to get all my addons working correctly as well. I’m g

相关标签:
3条回答
  • 2021-02-12 23:17

    Modules go in site-packages and executables go in your system's executable path. For your environment, this path is /usr/local/bin/.

    To avoid having to deal with this, simply use easy_install, distribute or pip. These tools know which files need to go where.

    0 讨论(0)
  • 2021-02-12 23:19

    Since pip is an executable and which returns path of executables or filenames in environment. It is correct. Pip module is installed in site-packages but the executable is installed in bin.

    0 讨论(0)
  • 2021-02-12 23:20

    Also, when you uninstall the package, the first item listed is the directory to the executable.

    0 讨论(0)
提交回复
热议问题