Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8465173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:57:58+00:00 2026-06-10T14:57:58+00:00

I have EPD 7.3.1 installed (nowadays called Enthought Canopy), which comes with scikit-learn v

  • 0

I have EPD 7.3.1 installed (nowadays called Enthought Canopy), which comes with scikit-learn v 0.11. I am running Ubuntu 12.04. I need to install v 0.12 of scikit-learn.

The scikit-learn doc says clone the repository, add the scikit-learn directory to your PYTHONPATH, and build the extension in place: python setup.py build_ext --inplace

The problem is that EPD is its own closed world (with mulitple scikit dirs):
./lib/python2.7/site-packages/scikits/
./lib/python2.7/site-packages/sklearn

And then there’s:
./EGG-INFO/scikit_learn/

I really don’t want to experiment as it has taken a very long time to get things tuned to this point. Should I follow scikit-learn’s directions in this case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:58:00+00:00Added an answer on June 10, 2026 at 2:58 pm

    The actions described on the scikit-learn website work irrespective of the scikit-learn version in EPD. Python will automatically use the scikit-learn version set in the PYTHONPATH environment variable, which you should set to the directory path of the Git version of scikit-learn.

    If you use Bash on a Unix-like system, you should do the following:

    • Perform the actions to install scikit-learn’s latest code (in this example I cloned it to /home/yourname/bin/scikit-learn)
    • Edit .bashrc and add the line: export PYTHONPATH="/home/yourname/bin/scikit-learn";
    • Open a new terminal and start Python in interactive mode by typing python
      • Type: import sklearn
      • Type: sklearn.__verion__ this should now show '0.12-git' instead of 0.11

    Why does this work? Python uses the variable sys.path (a list of paths) internally to keeps track of all the directories where it should look for modules and packages. Once a module or package is requested, Python will sequentially go through this list until it has found a match. So, e.g., a module can be listed multiple times in sys.path, but only the version which appeared first in the list will be used.

    Every Python installation will have its own default set of paths listed in sys.path. One way of extending sys.path is by listing paths in PYTHONPATH. Once Python starts it will read this environment variable and add it to the start of the sys.path list. So if you add the path to another version of scikit-learn to your PYTHONPATH then (EPD’s) Python will find that version of scikit-learn first and use it instead of the version listed further on in sys.path.

    To view sys.path, simply import sys and then print sys.path. Also, e.g., if you only want to use the 0.12 version of scikit-learn in one Python program and use the 0.11 version as default in all other Python programs then you could leave the PYTHONPATH empty and only insert the path to scikit-learn 0.12 manually at the top of your code:

    import sys
    sys.path.insert(0, '/home/yourname/bin/scikit-learn')
    import sklearn
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the academic distribution of EPD 7.1 for MacOS 10.6.x , which has
I'm trying to install Theano on Enthought Python Distribution (EPD), but I am getting
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
Have deployed numerous report parts which reference the same view however one of them
Have searched the database but need to specifically sum(of hours flown or days off)in
Have a network location that shows paths in the 8.3 short format. I need
Have a simple one-off tasks which needs a progress bar. OpenSSL has a useful
Have anyone used Redmine Documentor which lets you convert PHP to HTML to Redmine
Have the following scenario. I have a few form, which essentially have a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.