I can't install any python module or library using pip on command prompt, whenever I tried to install any module the error occurs. I have the latest version of conda in my system.
The error is as-
Unable to create process using 'C:\Users\UDIT DEO\Anaconda3\python.exe
"C:\Users\UDIT DEO\Anaconda3\Scripts\pip-script.py" install keras
Related
My code starts with installing these packages -
pip3 install ipython
pip3 install selenium
pip3 install time
pip3 install parsel
pip3 install csv
but I get -
File "<ipython-input-7-cae965d78112>", line 1
conda install ipython
^
SyntaxError: invalid syntax
I have tried replacing pip3 with pip and conda, it still gives the same error.Please help me to install these packages.
thanks!!!
pip3 and conda are utilities separate to the Python programming language. pip3 and conda make it easier for users to install python packages to their machine/virtual environment which is why you get SyntaxError: invalid syntax because what you've written is not valid Python.
If you want to use pip3 or conda these commands should be used at into a terminal. These tools search online for modules you want to install, download them and install them into the appropriate location (for your user or into your virtual enviroment). If you try to install something that can't be found online in the pypi you'll get an error.
You've tried to install the module csv using pip3 install csv. The csv module is part of Python's standard library so pip3 will not find this package on pypi. Being part of the standard library means that every installation of Python has this library. To use the csv module you can do import csv in your notebook/.py file. The same goes for the module time.
I have installed the oct2py package using the pip command pip install oct2py, set the environement path of python, pip and octave as in the following picture:
However, whenever I try to import it in my python script, I get the following error:
I checked whether the package is installed, it says: Requirement satisfied.
Any ideas of what I could possibly be doing wrong?
I am using the OS Ubuntu 20.04 and I have installed Anaconda Python. I am following a course in orielly and the instructor asked to execute the below 2 commands, on trying it I am getting the respective error message,
command:
jupyter labextension install jupyter-matplotlib
error:
An error occured.
ValueError: "jupyter-matplotlib" is not a valid npm package
command :
jupyter labextension install #jupyter-widgets/jupyterlab-manager
error:
An error occured.
ValueError: "#jupyter-widgets/jupyterlab-manager" is not a valid npm package
I have installed nodejs already, for your information.
Open Anaconda prompt and just run the command:
pip update --all
pip install matplotlib
I am trying to install TensorFlow. The installation instruction for Windows (https://www.tensorflow.org/install/install_windows) have as first step to install Python 3.5.2. And I'm doing the 'TensorFlow with CPU support only'.
Python was successfully installed in my computer as I can run it via the Start menu.
However, when I try to do the 2nd step of the installation instructions in order to install TensorFlow, this step says to:
To install TensorFlow, start a terminal. Then issue the appropriate pip3 install command in that terminal. To install the CPU-only version of TensorFlow, enter the following command:
C:\> pip3 install --upgrade tensorflow
But I'm getting an error when I perform the above statement, the error is
'pip' is not recognized as an internal or external command, oprable program or batch file.
I looked at several postings in StackOverflow and tried the commands provided in one of the postings, but I would get the same type of error.
So, how is 'pip3' installed? from what I read, it is supposed to be installed together with the installation, but obviously that did not happen.
How do I install it? I need to install TensorFlow and it seems that it needs to be done via the pip3 installation tool.
Thank you in advance for your help!
Either set the system environment path variable to include the python 3.5.x path in it, or just cd into the correct python folder to run pip3 from there.
The folder in windows 10 should be something like this:
C:\Users\YOUR_USERNAME\AppData\Local\Programs\Python\Python35\Scripts
Open the terminal, cd to that path (change YOUR_USERNAME to the correct user) and then just run the following command:
pip3 install --upgrade tensorflow
and if you want the gpu version:
pip3 install --upgrade tensorflow-gpu
Pip3 is already installed when you install Python, so there is no need to do anything else.
I'm following instructions to create a Tensorflow environment for a Machine Learning course, with python 3.5, ipython and jupyter.
I created a Tenserflow environment with python 3.5 using conda create -n tensorflow python=3.5. That worked.
Then I ran conda install -c conda-forge tensorflow. That also worked.
Then I installed ipython with conda install ipython, which also worked fine.
However, when I ran pip3 install jupyter, I got error message bash: pip3: command not found.
I found a few posts about variations on pip3 problems and (within the Tensorflow environment):
When I type pip --version, it tells me I have version 8.1.2
When I try locate pip3, I get WARNING: The locate database (/var/db/locate.database) does not exist
I tried using pip-3.2 as recommended in one of the other questions' solutions (which worked for that OP), and I get the same command not found error message.
I'm using OS X 10.8.5
pip is different from pip3. So you might need to install it if it can't be found. If it is installed run this:
sudo updatedb
this will update the locate function.
if you're using conda why do you want to install it with pip anyways?
Jupyter is the new version of ipython. running conda install ipython installs ipython (now jupyter).