Cleaning Python modules an have fresh start Mac OS X

后端 未结 3 1770
忘了有多久
忘了有多久 2021-02-07 09:02

I am not a total newbie but I am trying to install modules for quite a long time and at this point i would like to have a fresh start and install python and all the modules I ne

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 09:42

    • Is there a way to install all the modules in the correct place?

      Download and untar/gunzip/etc the module source (Most of the modules ares available in gzip form at http://pypi.python.org/pypi), then run configure with --prefix set to the same thing for every install:

          [ 11:06 jon@hozbox.com ~ ]$ ./configure --prefix=/usr/local
      

      /usr/local is usually the default, but it doesn't hurt to specify it and will ensure that every module you install will be placed in /usr/local/lib/python/...

    • Is there a good step-by-step description on how installing modules works?

      The Python website has a great page called: Installing Python Modules


    http://pypi.python.org/pypi
    http://docs.python.org/install/index.html

提交回复
热议问题