"pip install models": Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output - tensorflow

For a deep-learning project, I was trying to import the 'models' library. But it's not installed on my colab notebook. So, I tried pip install models to install the library but it shows error which is as on the screenshot. I've also read somewhere that the library is renamed as 'pymodels'. I've also tried it but still not working.
I would be thankful for any help you can provide.

Related

How to install UpSetPlot on google colab

I am using google colab for python programming.
however, the package UpSetPlot was not installed. I tried using the command:
!pip install UpSetPlot
but the following error appears:
Collecting UpSetPlot
Using cached https://files.pythonhosted.org/packages/a7/11/5cc8a0ebaf4f3a9a8e02cd3a9a13806eaebfc1d2ffb4a40031bdc83ad1be/UpSetPlot-0.5.0.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
There seems to be a problem in versions after 0.4.1 of upsetplot which may be related to the version of Python that is used in Colab.
Try this in a Colab cell.
!pip install upsetplot==0.4.1

Error when installing a python module in Linux

I am encoutering two kinds of issues while trying to install a package called Boltztrap2.
1) Trying to install Boltztrap2 using 'pip3'. However, when I punch in the command, the process goes smoothly for a while and then spits out an error :
BoltzTraP2/sphere/frontend.cpp:32:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
I did some troubleshooting and found out that it is just a path issue - I confirmed this by typing 'locate Python.h'. However, I don't get how to manually incorporate this change since the 'pip3' command that I use downloads the program and compiles it automatically. I don't seem to have access to change any scripts, or rather I do not know how to, since I'm kind of new to all this.
PS: I do not have sudo access.
2) Trying to install Boltztrap2 by manually compiling the python setup file: This seems to work fine until the system spits out an error saying:
Error:numpy is not installed.
PS: Again, I do not have sudo access.
I would be very glad if someone could help me install this package through either method. I just want to get the software to work. Thanks in advance for any assistance.
python3 -m pip install --upgrade pip
pip3 install numpy
Check if you can upgrade pip?
If that works then you can pip install numpy.

Fatal error in launcher: Unable to creat process using "c:\bld\scrapy_345323\_h_env\python.exe"

I installed anaconda and python on Windows 7 without errors.
I tried to run an example from scrapy.org.
scrapy runspider quotes_spider.py -o quotes.json
I got an error:
Fatal error in launcher: Unable to creat process using “c:\bld\scrapy_345323_h_env\python.exe”
How can I resolve this?
Well for anyone that would like to create his first bot from scrapy.org I can confirm the solution is as follows:
first uninstall scrapy from conda
conda uninstall -c conda-forge scrapy
and use pip instead as follows:
pip install --force-reinstall scrapy
I had an astroid 2.2.5 problem, but reinstallation succedeed
and I ran the script succesfully
scrapy runspider quotes_spider.py -o quotes.json
Anyway you may experience other problems running the example provided quotes_spider.py, then I suggest trying locating your spider .py to the same folder as your anaconda prompt (in my case,c:\users\bla bla)
running the anaconda powershell did not work anymore, so I will continue working from anaconda prompt

Can you use rmagic (rpy2) in google colaboratory?

I know google colaboratory doesn't yet support an R kernel. What about rmagic? Can I use rpy2?
I tried :
!pip install rpy2==2.8.6
And got :
Collecting rpy2==2.8.6
Using cached https://files.pythonhosted.org/packages/32/54/d102eec14f9cabd0df60682a38bd45c36169a1ec8fb8a690bf436cb6d758/rpy2-2.8.6.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-install-3bSiiD/rpy2/
I'm guessing that it isn't working because R isn't installed on whatever cloud machine this notebook is running on, and that it probably isn't possible to install it. But I'm hoping I'm wrong and someone may know of a work around.
OK, I answered my own question. I thought for sure this would fail, but tried anyway:
!apt-get update
!apt-get install r-base
!pip install rpy2==2.8.6
And it worked!

Control Charts in Python Error

I am trying to implement a Shewhart control chart on multiple variables, after looking up packages in Python to implement this I came across SPC and controlcharts. Both are failing to load when code :
pip install spc
pip install controlchart
both come with error code:
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\AppData\Local\Temp\pip-build-xdg2j1zr\spcchart\
All my packages are up to date and I am fearful the age of SPC/ ControlChart are preventing the installation. I am new to python and any help would be appreciated about what error code 1 indicates and where I can find control charts.
You can try this command
pip install python-controlchart
For the second command
There is another package
pip install pyspc