Using freshly installed python 3.5.2 on windows 10, trying to install libraries via cmd, gives such result:
C:\Python35>pip install theano
Collecting theano
C:\Python35>pip install numpy
Collecting numpy
C:\Python35>pip list
pip (8.1.1)
setuptools (20.10.1)
C:\Python35>
The question is simple, how to make pip to install?
About trial and error. I did try to find solution, yes, and here is what does not work:
Using --no-cache-dir
pip install numpy-1.16.1-cp37-cp37m-win_amd64.whl same for Theano
python -m pip install and every special combination of parameters like pip3 -vvv and so on.
manually deleted the contents of the cache directory
ran as administrator, launched cmd from python folder
reinstalled python, restarted pc, have internet connection
Related
I have to install Tensorflow and the object detection API on a Jetson NANO.
I generally manage everything with virtual environments, but for a bunch of reasons this time I had to install everything in the base environment, and I assume I might've messed
something up.
The process starts, but it's getting stuck on solving some dependencies issues, and after running for the whole night it returns an error regarding the space left on the device (I assume it's downloading multiple versions of different packages and running out of space). So, I'm wondering if I'm installing them correctly.
I tried running the command:
python3 -m pip3 install --use-feature=2020-resolver .
but I'm getting the error:
/usr/bin/python3: No module named pip3
If I run simply
python3 -m pip install --use-feature=2020-resolver .
it goes, but as I was saying it gets stuck, so I was wondering if it is installing the files in the right locations.
I tried checking the outputs of:
which python3
which pip3
and I got
/usr/bin/python3
/usr/local/bin/pip3
So, the command pip3 does exist, and refers to /usr/local/bin/pip3...at this point, I don't understand why it returns the error when trying to use python3 -m pip3 install.
As a matter of fact, I used pip3 for all the previous steps in the object detection API installation, like:
sudo pip3 install -U pip testresources setuptools==49.6.0
sudo pip3 install -U numpy==1.16.1 future==0.18.2 mock==3.0.5 h5py==2.10.0 keras_preprocessing==1.1.1 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11
sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v45 tensorflow
(I generally DON'T use sudo with pip, just following the official instructions for the Jetson NANO)
This is my first time trying to install a repo not in PyPI. I'm not sure if I'm having a general issue or a specific issue with the package.
Repo:
https://github.com/jeslago/epftoolbox
Instructions are:
git clone https://github.com/jeslago/epftoolbox.git
cd epftoolbox
Then, simply install the library using pip:
pip install .
I've tried several approaches.
I tried adding the repo in Pycharm, as "https://github.com/jeslago/epftoolbox.git/" in the settings.
I tried using pip install from a local version of the repo
python -m pip install C:\Users\user\epftoolbox\
I tried installing in anaconda
git clone https://github.com/jeslago/epftoolbox.git
cd epftoolbox
pip install .
I get this error
Successfully built epftoolbox termcolor
ERROR: tensorflow 2.3.0 has requirement scipy==1.4.1, but you'll have scipy 1.5.2 which is incompatible.
But it finishes with "Successfully installed epftoolbox-1.0"
The issue is that I can do "import epftoolbox"
Fine. But if I try and run a script with "from epftoolbox.data import read_data"
I get the error
ModuleNotFoundError: No module named 'epftoolbox.data'
So I take it that the package didn't actually install?
I'm not sure what to try next?
I've python 3.8.5 installed 64 bit.
I've get the same issue in pycharm and idle.
Probably you need to install specific version of scipy to work with this library, try to uninstall current version and then install the correct version with this commands:
python -m uninstall scipy
python -m install -Iv scipy==1.4.1
I'm having trouble with Python.
I downloaded Python and pip without error.
But when I run pip install flask, it just waits a second and goes back to the command prompt.
Same issue when I run python -m pip install flask.
However, it works when I run py -m pip install flask.
Any ideas why this happens? Thanks!
My path is as follows:
%USERPROFILE%\AppData\Local\Programs\Python\Python38
%USERPROFILE%\AppData\Local\Programs\Python\Python38\Scripts
Message when installing pip.
Collecting pip
Using cached pip-20.1.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Successfully installed pip-20.1.1
You might have various versions of python. Can you just try your pip install by mentioning the version
python3.7 -m pip install flask
I am trying to install packages-openpyxl,textwrap,datetime etc. But it is showing error after 'Connecting ...'
I have tried following methods-
pip install package (this worked for some of the packages like pywin32)
unchecking and checking proxy server box
I have tried downloading .tar.gz files and then installing them
using (this worked for xlrd,xlsxwriter)
pip install file.tar.gz
Tried following commands-
pip install --proxy=user:pass#server:port openpyxl
pip install --proxy domain\user:password#proxyaddress:port openpyxl
I have been trying to find solutions to this for a while now but could not find any other solution to install rest of the packages which are openpyxl,Jinja2,textwrap and datetime. Is there any other way to get this done?
I am trying to run this tutorial
https://learn.microsoft.com/en-US/azure/data-factory/quickstart-create-data-factory-python
but I fail to install the packages. I tried several installations but I keep getting the error No module named 'azure.mgmt.datafactory' when trying to run from azure.mgmt.datafactory import DataFactoryManagementClient.
I am using anaconda and windows 10.
I tried running the recommended anaconda packages https://anaconda.org/anaconda/azure and https://anaconda.org/clinicalgraphics/azure-mgmt-resource under a python 3.5 environment and I also tried to manually install everything from github (https://github.com/Azure/azure-sdk-for-python) using
git clone git://github.com/Azure/azure-sdk-for-python.git
cd azure-sdk-for-python
python setup.py install
In both the normal (Python 3.6) and the new (Python 3.5, using Anaconda version with Python 3.5) environment. None of this worked.
What am I missing?
(Note that from azure.mgmt.resource import ResourceManagementClient worked fine with the anaconda installation)
EDIT
After the first response, I ran the following commands from the powershell
pip install azure-mgmt-resource
pip install azure-mgmt-datafactory
pip install azure-mgmt
which resulted in ModuleNotFoundError: No module named 'azure.mgmt'
Uninstalling the three packages and installing azure-mgmt as a first one did not solve the issue either. However, I don't know how to uninstall the manually installed package from python setup.py install, which still might be an issue.
Have you tried pip install in powershell/cmd?
pip install azure-mgmt-datafactory
Update (Jan's answer):
pip freeze > requirements.txt
pip uninstall -r requirements.txt
python -m pip install azure-common
python -m pip install azure-mgmt
python -m pip install azure-mgmt-datafactory (this might not be needed as it comes with azure-mgmt)
Ok, this is how I got the required azure libraries to work (thx to Saul Cruy, who gave me the idea)
Using this post What is the easiest way to remove all packages installed by pip?, I created a requirements file in PowerShell
pip freeze > requirements.txt
In this file, I manually kept only the entries with azure.
Then, I deleted all packages in the file
pip uninstall -r requirements.txt
The steps above were repeated twice, as upon first delete, some azure packages survived.
Then, I ran (all in PowerShell, in that order)
python -m pip install azure-common
python -m pip install azure-mgmt
python -m pip install azure-mgmt-datafactory
The reason might(!) be that installing packages in the anaconda console using the conda commands causes confusion in the dependencies (I tried a similar approach in a conda environment as it seemed like a good idea to seperate the azure packages from the other ones, but without success).