Error when installing github module via pip - python

I'm trying to download a python module from github using pip, but I seem to be running into problems upon download:
00000#ubuntu-00000:~/Desktop/Python/Blockchain.data$ pip install git+https://github.com/luke-jr/eloipool.git
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting git+https://github.com/luke-jr/eloipool.git
Cloning https://github.com/luke-jr/eloipool.git to /tmp/pip-f159a1wz-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 18, in <module>
File "/home/00000/anaconda3/lib/python3.4/tokenize.py", line 438, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-f159a1wz-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-f159a1wz-build
Any insight into why this isn't installing?

I experienced a similar problem when installing selenium recently. Firstly upgrade your PIP. Then try installing what ever you are trying to install.

Module did not contain a setup.py file.
Ended up doing:
git clone https://ADDRESS .

Related

Not able to install django-allauth in ubuntu 18.04.6 LTS

I'm trying to add social authentication in my project but when I try to install django-allauth it is giving me error I've tried this post but no luck it's giving me another error related to setuptools_rust I've given commands I've tried and errors related to each command.
$ pip3 install django-allauth
Error :
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-7e3fgl32/cryptography/setup.py", line 14, in
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-7e3fgl32/cryptography/
Then I tried to install setuptools_rust as it causing error
$ pip3 install setuptools_rust
This package does not give me any error it installed successfully
Then I've tried to install some commands from this post
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
It did not change anything check response of command
Reading package lists...
Done Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
libffi-dev is already the newest version(3.2.1-8).
python-dev is already the newest version (2.7.15~rc1-1).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.14).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
and finally I've tried this command
$ pip3 install cryptography
Error :
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/f9/4b/1cf8e281f7ae4046a59e5e39dd7471d46db9f61bb564fddbff9084c4334f/cryptography-36.0.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "/tmp/pip-build-yp90u93b/cryptography/setup.py", line 54, in <module>
rust_version=">=1.41.0",
File "/home/dev/Ankit/new/afterlife_env/lib/python3.6/site-packages/setuptools/__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "/home/dev/Ankit/new/afterlife_env/lib/python3.6/site-packages/setuptools/__init__.py", line 142, in _install_setup_requires
dist = MinimalDistribution(attrs)
File "/home/dev/Ankit/new/afterlife_env/lib/python3.6/site-packages/setuptools/__init__.py", line 134, in __init__
distutils.core.Distribution.__init__(self, filtered)
File "/home/dev/Ankit/new/afterlife_env/lib/python3.6/site-packages/setuptools/dist.py", line 457, in __init__
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
AttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-build-yp90u93b/cryptography/setup.py", line 88, in <module>
version = pkg_resources.get_distribution(dist).version
AttributeError: module 'pkg_resources' has no attribute 'get_distribution'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-yp90u93b/cryptography/setup.py", line 89, in <module>
except pkg_resources.DistributionNotFound:
AttributeError: module 'pkg_resources' has no attribute 'DistributionNotFound'
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.6.9
platform: Linux-4.15.0-166-generic-x86_64-with-Ubuntu-18.04-bionic
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yp90u93b/cryptography/
It seems pip3 install --upgrade pip not worked for me then I tried this way and it worked
python3 -m pip install --upgrade pip
Thanks to this post
for Python 3:
python3 -m pip install --upgrade pip
for Python 2:
python2 -m pip install --upgrade pip
for Python:
python -m pip install --upgrade pip

Installation error when commanding pip install d3 on my virtualenv

When I commanded pip install d3 to install the package, I got the following error.
(upload) Seungchului-MacBook-Pro:upload sclee$ pip3 install d3
Collecting d3
Using cached https://files.pythonhosted.org/packages/c9/20/aee1da98c819523d1c36f32232f28045cddba6f3411094fa5aa548f3db74/d3-0.1.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/w7/1l0pttwd5yg7nqn1j53l33mh0000gn/T/pip-install-kswsp3yr/d3/setup.py", line 8, in <module>
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/w7/1l0pttwd5yg7nqn1j53l33mh0000gn/T/pip-install-kswsp3yr/d3/README.rst'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/w7/1l0pttwd5yg7nqn1j53l33mh0000gn/T/pip-install-kswsp3yr/d3/
To resolve the issue, I tried to google it and found that pip install -U setuptools would solve the issue, however it didn't work to my case.
I also tried to command it by sudo but result is same.
My python version is 3.6.5. What is the problem? I need your help a lot.
Thanks.
You should run the pip3 command since you are using python 3.6.5 the command would be as follows:
pip3 install js.d3
Then once that is successful you can use the following:
from js.d3 import d3
d3.need()
This was straight from the Python Software Foundation Page which can be found here:Python_Software_Foundation_Page
pip install --upgrade setuptools
or
sudo pip install --upgrade setuptools
Are you looking for pip3 install js.d3
and use like- from js.d3 import d3

Cannot pip install scipy, mlxtend and math libraries

I am using python 3.5 on windows 10. I am not able to install some libraries like scipy, mlxtend and math.
I have installed and upgraded setuptools and ez_setup following this answer
Python pip install gives "Command "python setup.py egg_info" failed with error code 1"
When I try to pip install scipy and mlxtend I get the following error:
NotFoundError: no lapack/blas resources found
And when I try to install math I get the following error:
Using cached Math-0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\setup.py", line 2, in <module>
raise RuntimeError("Package 'Math' must not be downloaded from pypi")
RuntimeError: Package 'Math' must not be downloaded from pypi
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\
On Windows, you'll want to locate the unofficial binaries here and download the appropriate .whl files for the packages you're wanting to install. Use pip to install and upgrade wheel and setuptools then do pip install the_name_of_the_file.whl
so altogether, assuming you want to install matplotlib and the .whl file is in your current directory...
pip install wheel
pip install --upgrade setuptools
pip install matplotlib‑1.5.3‑cp35‑cp35m‑win32.whl

Python 2.7.11 Pip 8.0.3 can't install gohike WHL of TA-Lib 0.4.9 [duplicate]

When I try to install any .WHL from gohike by typing into the cmd C:\Users\owner\Downloads>pip install TA_Lib-0.4.9-cp27-none-win_amd64.WHLI get this print out:
`Processing c:\users\owner\downloads\ta_lib-0.4.9-cp27-none-win_amd64.whl
Complete output from command python setup.py egg_info:
Traceback <most recent call last>:
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory:'c:\\users\\owner\\appdata\\lo
cal\\temp\\pip-9gwk2c-build\\setup.py'
-----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\owner\ap
pdata\local\temp\pip-9gwk2c-build\`
The part between pip- and -build inpip-9gwk2c-build is always different even on the same file.
I asked this Python 2.7.11 Pip 8.0.3 can't install gohike WHL of TA-Lib 0.4.9 a few days ago and decided to ask differently. Thanks to anyone who can help me!
You have an outdated pip which does not understand wheels. Wheels are not even supposed to have a setup.py inside.
Try upgrading pip with pip install --upgrade pip and then running the command again.
Well, I didn't fix pip but I found out that if I use 7zip to open/unpack the wheel file and drag drop the 2 folders in it into C:\Python27\Lib\site-packages that it works!

pip install failure :Command python setup.py egg_info failed with error code 1 [duplicate]

I'm trying to install PyQt package with pip, but I get this error:
~$ pip install PyQt
Downloading/unpacking PyQt
Downloading PyQt-x11-gpl-4.8.3.tar.gz
(9.8Mb): 9.8Mb downloaded Running
setup.py egg_info for package PyQt
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory:
'/home/john/build/PyQt/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in
<module>
IOError: [Errno 2] No such file or
directory:
'/home/john/build/PyQt/setup.py
---------------------------------------- Command python setup.py egg_info
failed with error code 1 Storing
complete log in
/home/john/.pip/pip.log
That's because that file has a configure.py not a setup.py. configure.py generate a make file that you use to build pyqt against the qt lib you choose by passing --qmake option to configure.py, it has different options too. I suggest filing a bug with the pip maintainer.
If you're on Mac, you can use homebrew:
brew install pyqt
You can, alternatively, install PyQt4 using ActivePython's binary package manager.
$ pypm install pyqt4
The following packages will be installed into "~/.local" (2.7):
pyqt4-4.8.3.0
Hit: [pypm-free.activestate.com] pyqt4 4.8.3.0
Installing pyqt4-4.8.3.0
$
So long as you already have PyPM, no compilation required.
Sharing my setup procedure:
create virtual environment on your project folder and activate:
python3 -m venv venv
source venv/bin/activate
use pip to install PyQt5 (Note: specify the version especially on Centos7)
pip3 install pyqt5==5.14
you can pip install the directory of the downloaded version of pyqt after you download it ..google for your desired version

Categories

Resources