How to install scikit-learn for Portable Python? - python-2.7

While I am trying to install scikit-learn for my portable python, its saying " Python 2.7 is not found in the registry". In the next window, it does ask for an installation path but neither am I able to copy-paste the path nor write it manually. Otherwise please suggest some other alternative for portable python which has numpy, scipy and scikit-learn by default. Please note that I don't have administrative rights of the system so a portable version is preferred.

you can easily download SciKit executable, extract it with python, copy SciKit folder and content to c:\Portable Python 2.7.5.1\App\Lib\site-packages\ and you'll have SciKit in your portable python.
I just had this problem and solved this way.

From my other answer:
Since you are using Portable Python, the best way to install modules is to use easy install. Go to your Portable Python folder directory: Portable Python 2.7.6.1.
Next open a command prompt in that location by Shift + Right Click.
Then type the following:
App\Scripts\easy_install.exe YourModuleNameHere
Example to install scikit-learn:
App\Scripts\easy_install.exe scikit-learn
enter code here`enter code here`enter code here`

you can download the new portable python setup from the http://koen.me/research/teaching-asci/PortablePython.zip . This setup already contains the scikit-learn.

In case you're on Windows, WinPython is a 64bit portable distribution that contains scikit-learn as an optional component.
Afaik, this is the only 64 bit distribution with the scipy stack for Windows.

Related

Pyomo 6.0 on WinPython 3940: best way to install Ipopt?

There is no "pip install ipopt".
What is the best way to proceed then, once I installed Pyomo?
I dropped a copy of Ipopt.exe in the "python-3.9.4.amd64" forlder, and it works.
But it looks a bit dirty to me!
I use Pyomo since a long time, and installing Ipopt or Glpk has always been an uncertainty.
On colab, azure notebooks, and now winpython.
Thanks
Michel
Place the .exe somewhere and make sure to add the directory to the PATH. The same goes for glpk.
The python folder you mentioned is probably on the system's path and that’s why it works.

Installing Tensorflow for Python 2.7 for Keras and CoreML conversion on Windows 10

I am currently working on an artificial neural network model with Keras for image recognition and I want to convert it using CoreML.
Unfortunately, I have been working with Python3 and CoreML only works with Python 2.7 at the moment. Moreover, Tensorflow for Python 2.7 does not seem to be supported by Windows... So my only hope is to find a way to install it.
I saw some tips using Docker Toolbox but I did not catch it and I failed when trying this solution, even though it looks like the only thing that works.
So, is there any quite simple way to install Tensorflow for Python 2.7 on Windows 10?
Thank you very much!
A non-optimal solution (the only one I found) in my opinion, is to install a Linux virtual machine. I used VitualBox for it.
Then, it is very easy to download Anaconda and Python 2, as well as the right versions of the packages. For example, you can download Tensorflow 1.1.0 using the following command $ pip install -I tensorflow==1.1.0.

Python : Can I separately use maintain and install ANN libraries and Image processing libraries in same project on windows10

I want to use Opencv library for image processing which supports for python 2.7 and tensorflow library for ANN which supports for python 3.5 in the same project.But when I try to include opencv library after including tensor flow library in to pycharm,it shows an error.Is there any way to handle this problem?I have installed both python2.7 and python3.5 in my computer using anaconda.
Yes, you can use both. Any errors you get are due to a bad installation of either Tensorflow of OpenCV. Best would be to find out what the exact problem is and post a new question to describe that.
Also: it would be a good idea to use Docker to get an image with OpenCV and tensorflow already installed. This is one I like: https://github.com/pkmital/CADL/tree/master/#docker-installation. It really removes the dependency and installation problems!

How to install get-pip.py for Portable Python 2.7.6.1

I have to work with python for a university project – unfortunately I’m a total newbie and now I have serious problems in installing pip. We are obliged to use Portable Python 2.7.6.1. Every time I try to run the get-pip.py file, Python opens config.py and shows me the error message “ValueError: Unable to configure handler 'console': DebugOutput instance has no attribute 'closed'”. My operating system is Windows 8.
What can I do? Thanks so much!
Does this work?
App\Scripts\easy_install.exe pip
From the Portable Python website:
One of the options for adding new packages/libraries to Portable Python is easy-install. This approach will work for simple libraries but for some more complex it might not as in some cases easy-install adds files outside of the Portable Python folder, which makes this not a portable installation.
As far as I know, the Portable Python project is abandoned. For Windows, this project picks up where Portable Python left off: https://winpython.github.io

I can't install numpy and scipy with python

Can anyone tell me how can i setup a python working environment with numpy and scipy?
I have succesfully downloaded python but i can't install numpy,it gives me an error "unable to find vcvarsall.bat"
You can install Enthought Canopy, which is an easy way to get python with lots of useful packages (including numpy and scipy) built in.
Similar to jh314's answer, there is also Anaconda.
Download the executable installers from Christoph Gohlke's Python Extension Packages for Windows repository. Numpy is here and Scipy is here.