I've been trying to install sklearn manually using pip with python 3.6 and i'm facing a lot of trouble. I couldn't get it installed cuz there was a problem with scipy.
I installed pycharm and tried to install both of them using the Packages interfaces and i'm still getting an error while trying to install sklearn.
NB: I installed scipy and numpy+mkl using their whl files
The module name is scikit-learn, not sklearn.
Related
I am not able to install kmodes using pip install kmodes while doing this I am getting
this warning message
This is not a warning, it just lists what is happening when the package kmodes is being installed. And from that image, it is clear that you have some packages required for kmodes. However, you have scikit-learn 0.18.1 but kmodes requires another version of it, so it is attempting to uninstall this existing version.
I am trying to implement tensorflows word2vec_basic.py model in my system.I went through this tutorial to understand and implement it.
After I ran the word2vec code using python3 in my system it asked me to install sklearn, matplotlib, and scipy to visualize embeddings.
So I installed sklearn, matplotlib, and scipy using pip in my system and ran the code a second time but it still asks me to install the above 3 again.
No errors were there during installation of sklearn, matplotlib, and scipy. I am using Ubuntu 16.04 LTS.
UPDATE: Here is the screenshot after removing try and except -
https://ibin.co/377XsooeSdej.png
As evident from the error message, you are missing the python3-tk package. Try to install it using,
sudo apt-get install python3-tk
I am having a strange issue installing numpy or nltk python-modules in my windows-7 machine. I have successfully installed Python 2.7.12 but I get this error when I type pip install numpy as in this screenshot. I have also included the directory of pip.exe in the PATH. Any help would be appreciated.Thank you :)
Installing such these things in windows are sometime difficult, specially for someone new to python packages(also for some experts!)
Try to use Anaconda for windows: https://www.continuum.io/downloads#_windows
This install a python for you and many requirement packages(e.g Numpy, Scipy, Scikit and many more)
You can use older version of Anaconda, for python2.x if you want strictly python2.x
An alternative way is to download Numpy from github and then install it as a python package, that contain setup.py file
python setup.py install
Or you can download Numpy wheel package, then install it localy with pip
I am trying to use Xgboost but facing problems in installation.
i am using mac and I use python notebook jupyter for the same. I opened the command line and used pip install xgboost and it got installed successfully but when I try to use it in my code by writing import xgboost as xg then I get ImportError: No module named xgboost
Can anyone help me?
It may come from the fact that you have two (or more) python environments. A hacky solution is to install it within Jupyter Notebook (note the '!'):
!pip install xgboost
I am trying to follow to the installation guide on tensorflow.org and have installed Python version 2 again for that reason using Homebrew.
When I run the installation as described
$ pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
I get this error message:
tensorflow-0.5.0-py2-none-any.whl is not a supported wheel on this platform.
I am obviously doing something wrong, but have no idea. Any clues?
I do not want to use virtualenv, since anaconda already comes with its own environment management conda. When installing the newest version 0.6.0 directly with pip install, I had a similar error. It seemed to not resolve the dependencies correctly.
Here is what you can try:
Install anaconda
Create a new conda workspace
Download the specific protobuf version that tensorflow needs: https://pypi.python.org/pypi/protobuf/3.0.0a3
Install it via sudo easy_install ~/Downloads/protobuf-3.0.0a3-py2.7.egg
Install a numpy version greater than 1.08.x via conda install numpy
Download the 0.6.0 version of tensorflow: https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl
Install via pip install ~/Downloads/tensorflow-0.6.0-py2-none-any.whl
When you install tensorflow from the whl file directly, it should tell you when dependencies are not there. It seems not to be able to resolve these conflicts independently. My setup had issues with protobuf and numpy. After installing them manually everything worked fine.
I hope this helps!
It seems to be a common issue. Try to install it in the virtualenv. Its a much better solution, as you can always easily set up a new version of tensorflow without conflicts.
VirutalEnv Tutorial:
http://tensorflow.org/get_started/os_setup.md#virtualenv-based_installation
On the Mac, I didn't have any problem installing tensorflow with the anaconda version of python: https://www.continuum.io/downloads
The anaconda version also provides science, math, engineering, and data analysis packages. A lot of people on https://www.kaggle.com/ seem to use this...just a thought.