Install rpy2 returns an error - python

I am using Linux, Debian based, and trying to install rpy2 with pip3.
When type:
sudo pip3 install rpy2
I get
user#huayra:~$ sudo pip3 install rpy2
Collecting rpy2
Using cached rpy2-2.9.2.tar.gz
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command 'R' in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-r6axcg8n/rpy2/
I have pip3 installed, the version is:
pip 9.0.1 from /usr/local/lib/python3.4/dist-packages (python 3.4)
EDIT
After some updates I re-run the command sudo pip3 install rpy2 and get:
Error: R >= 3.3 required (and the R we found is '3.1.1').
R version 3.1.1 (2014-07-10) -- "Sock it to Me"
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3n_yfk5i/rpy2/
Any help please?

That package has been part of the distribution for many years -- I'm the maintainer.
So just do
sudo apt-get install python-rpy2 (Python 2 on e.g. Debian stable)
sudo apt-get install python3-rpy2 (Python 3, available everywhere)
and it will bring all required dependencies in as usual.

Related

PyCups Failed building wheel for pycups on Raspberry Pi

I'm trying to install pycups on my raspberry pi running Python 2.7.16 and pip version 18.1. I'm trying to install with the following command:
sudo pip install pycups
But it keeps failing and giving this error:
Failed building wheel for pycups
Running setup.py clean for pycups
Failed to build pycups
Any ideas what could be wrong and how I can install pycups on my Pi?
I've tried
sudo pip install -U setuptools
and
sudo apt-get install python-dev
And both say they are up-to-date
Given that Python 2 reached it's end of life in 2020/01/01, pycups 2.0 and later require Python 3.
If you already have Python 3 installed, you may run the command as
pip3 install pycups
The same applies to python, becoming python3 to disambiguate.
Note that the dependencies also change:
sudo apt install gcc python3-dev libcups2-dev

I couldn't install discord.py

So I was running this command
py -3 -m pip install -U discord.py[voice]
in PyCharm (using latest version) but it couldn't let me install it. It gave me this exception:
ERROR: The 'make' utility is missing from PATH
ERROR: Failed building wheel for PyNaCl Failed to build PyNaCl
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
if you are in linux run,
sudo pip3 install discord.py[voice] -U
or if you are on windows run,
pip install discord.py[voice] -U

Cannot install pyDNS with Python 3. Command "python setup.py egg_info" failed

I run python 3.6 and try to install the pyDNS package from pip. When I run pip install pyDNS or pip3 install pyDNS I get the error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\USER\App Data\Local\Temp\pip-install-7r09f2ua\pyDNS\
I've been trying to install the setuptools upgrade with the command pip install --upgrade setuptools but it didn't change anything.
pyDNS is Python2-only. Try py3dns or dnspython:
pip install py3dns
pip install dnspython

unable to install apache superset ubuntu 18.04 or even ubuntu 16.04

I have been trying to install apache superset in ubuntu (both 18.04 and 16.04 -- inside virtualbox )
I am following their documentation at - https://superset.incubator.apache.org/installation.html#python-virtualenv but getting stuck.
Here are the steps I followed
Step 1
`sudo apt-get install build-essential libssl-dev libffi-dev python3.5-dev python-pip libsasl2-dev` libldap2-dev
Step 2 :
pip install virtualenv
step 3 :
virtualenv venv
. ./venv/bin/activate
step 4 :
pip install --upgrade setuptools pip
step 5 :
pip install superset
and this is the step where I am getting stuck
and for ubuntu 18.04
the error message is something like this
Complete output from command python setup.py egg_info:
Sorry, Python < 3.6 is not supported
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-_atmAP/superset/
I am getting almost the exact same error with the only different being the error code 1 in /tmp/pip-install-_atmAP/superset/
where it is some other letters instead of _atmAP in the above error code
So, could you guys tell me where am I going wrong with this?? and how to get it installed?
I have python 3.6.7 installed, but I think somehow python 2.7 is being used for this when I do pip install superset
take a look at this and maybe you'll get some idea
pip install --upgrade setuptools pip
Requirement already up-to-date: setuptools in ./venv/lib/python2.7/site-packages (40.6.2)
Requirement already up-to-date: pip in ./venv/lib/python2.7/site-packages (18.1)
(venv) faraz#faraz-VirtualBox:~$ pip install superset
Collecting superset
Using cached https://files.pythonhosted.org/packages/da/48/583551048b9e045eed47dbd93c3210fa1e02193e4fad226033a19754525c/superset-0.28.1.tar.gz
Complete output from command python setup.py egg_info:
Sorry, Python < 3.6 is not supported
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-jNXS9r/superset/
(venv) faraz#faraz-VirtualBox:~$ sudo apt-get install python3.6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.6-dev is already the newest version (3.6.7-1~18.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(venv) faraz#faraz-VirtualBox:~$ pip install superset
Collecting superset
Using cached https://files.pythonhosted.org/packages/da/48/583551048b9e045eed47dbd93c3210fa1e02193e4fad226033a19754525c/superset-0.28.1.tar.gz
Complete output from command python setup.py egg_info:
Sorry, Python < 3.6 is not supported
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-M2CmSQ/superset/
What do you think?
how to fix this??
Could you create a virtual environment using python3.6 :-
virtualenv -p python3.6 ENV
Activate your environment
source ENV/bin/activate
Then try to install superset using below command:-
ENV/bin/pip3.6 install superset
following is working for me well in Ubuntu16.04:
sudo pip install --upgrade setuptools pip
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6 python3.6-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
sudo pip3 install superset

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/zv/vwwhcqfs4xj_9b09bbs1c3cm0000gn/T/pip-build-TZP2Ho/pyquil/

I'm trying to run this in Terminal:
pip install pyquil
But then this error comes up:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/zv/vwwhcqfs4xj_9b09bbs1c3cm0000gn/T/pip-build-8VPMQz/pyquil/
I've read through many other threads with the same problem and tried some solutions, but still no luck.
Attempted Solutions:
Add this to bash profile:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Updating pip/setuptools
Using ez_setup
I'm trying to follow this, and have the prerequisites: http://pyquil.readthedocs.io/en/latest/start.html
Any ideas?
Try upgrading your pip & pip setup tools and then try,
sudo pip install pyobjc-core
sudo pip install pyobjc
sudo pip install --upgrade pip
sudo pip install --upgrade setuptools
Then
sudo pip install pyquil

Categories