I want to install the Python package causallift, but the installation lingers at 'Installing build dependencies...'.
When I install with:
pip3 install causallift
The installation stays at 'Installing build dependencies' for hours.
you can try 2 more options:
run: pip3 install git+https://github.com/Minyus/causallift.git
clone the GitHub repository, cd into the downloaded repository, and run: python setup.py install
Related
I am trying to install ipykernel onto my virtual venv enrioment on windows. I typed python -m pip install ipykernel but I get the following error:
ERROR: Could not build wheels for psutil, pyzmq, which is required to install pyproject.toml-based projects
I tried downgrading using the command pip install pip==21.3.1 but I did not find any luck downloading pip onto my venv afterward either. I also tried using the command python -m pip install ipykernel which also did not work.
Let me know if you have any other ideas!
Try installing from source
git clone
cd ipykernel
pip install -e ".[test]"
Like many others I was not able to install (using pip) pandas on my MacBook M1, eventually thanks to this answer I managed to install it from source.
After cloning pandas the steps are
source venv/bin/activate
pip install cython
cd pandas
python3 setup.py install
I am obviously able to do the same for every project (virtualenv) I work with, but I would like to install in each project the locally built pandas module (v1.3.0.dev0+1019.gc10dd1a5f1) without a full rebuild from source.
Is that possible?
Instead of python3 setup.py install run pip wheel ., save the wheel from dist/ folder and next time install from the wheel:
pip install /path/to/pandas.whl
Run the following code
brew install openblas
pip3 install cython
OPENBLAS="$(brew --prefix openblas)" pip3 install numpy --no-use-pep517
OPENBLAS="$(brew --prefix openblas)" pip3 install pandas --no-use-pep517
enter image description hereI am try to install pip libraries in ec2-instances virtual environment using user data.
But while I am trying that I will create at instance level but not at virtual environment level.
What I need exactly is will I am creating ec2-instance on configuration level I want to define that to create pip libraries at virtual environment level.
#!/usr/bin/env bash
sudo yum update
sudo yum install python3 pip3 -y
sudo pip3 install --upgrade pip
pip install --upgrade pip
python3 -m venv /home/ec2-user/vertual-Environment
pip install django
pip install djangorestframework
pip install pillow
You have to source your python env envrionment.
Example (I have verified now the code on Amazon Linux 2):
#!/usr/bin/env bash
sudo yum update -y
sudo yum install python3 python3-pip -y
sudo pip3 install --upgrade pip
pip install --upgrade pip
python3 -m venv /home/ec2-user/vertual-Environment
# source your new python env
source /home/ec2-user/vertual-Environment/bin/activate
pip install django
pip install djangorestframework
pip install pillow
Using user data, your should install your dependencies this way :
python3 -m venv /home/ec2-user/vertual-Environment
/home/ec2-user/vertual-Environment/bin/pip install django
/home/ec2-user/vertual-Environment/bin/pip install djangorestframework
/home/ec2-user/vertual-Environment/bin/pip install pillow
When using userdata, your script are executed independently, regardless of what have been done in previous executions.
It sounds a bit crazy but I'm running into a problem with pip that is happening on some of our ubuntu 14 machines and not others. It is not limited to this package but I'll use 'coverage' as an example
$ sudo pip install coverage
pip places the install and metadata as follows
/usr/local/lib/python2.7/dist-packages/coverage
/usr/local/lib/python2.7/dist-packages/coverage-3.7.1-py2.7.egg-info/
If I try to uninstall, I get an error message
$ sudo pip uninstall -y coverage
Can't uninstall 'coverage'. No files were found to uninstall.
If I change the metadata path to not contain -py2.7
$ sudo mv /usr/local/lib/python2.7/dist-packages/coverage-3.7.1-py2.7.egg-info/ /usr/local/lib/python2.7/dist-packages/coverage-3.7.1.egg-info
uninstall succeeds with no problem
$ sudo pip uninstall -y coverage
Uninstalling coverage:
Successfully uninstalled coverage
This is wreaking havoc with some of our deploy scripts.
The workaround appears to be following the instructions below to install the newest version of pip
https://pip.pypa.io/en/latest/installing.html
I'm now at pip 6.0.6 and the current ubuntu provided version is 1.5.4
I installed a library "editable" with "pip install -e".
The library has updated the setup.py and new dependencies (install_requires=...) are required.
What should I do, to fetch the new dependencies?
I could install them manually. But an automatic resolve like on "pip install" would be nice.
Use the upgrade option:
$ pip install -h
...
-U, --upgrade Upgrade all packages to the newest available version
So: pip install -U editable