Error installing Python package: make utility is missing from PATH - python

I'm attempting to install pynacl on a new Windows machine with Python. Ran into the following error:
raise Exception("ERROR: The 'make' utility is missing from PATH")
Exception: ERROR: The 'make' utility is missing from PATH
----------------------------------------
Command ""c:\users\paul miller\appdata\local\programs\python\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\PAULMI~1\\AppData\\Local\\Temp\\pip-install-wxwyakn7\\pynacl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record C:\Users\PAULMI~1\AppData\Local\Temp\pip-record-syh9a1l_\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\PAULMI~1\AppData\Local\Temp\pip-install-wxwyakn7\pynacl\
In an attempt to resolve the exception, I installed GnuWin and added the path to my user and system PATH variables.
I opened a new command window and verified that "make" executed. However, rerunning the install attempt with the following command resulted in the same exception:
pip3 install pynacl
What should I try next?
EDIT 1: added screenshot to show Make working
EDIT 2: Tried with easy_install as well, still getting the make error

So, this was an idiotic mistake on my part. Turns out I had installed a beta version of Python... Python 3.7.0b4, to be specific.
Doom on me.
I removed the beta and installed 3.6.4 and everything worked fine.
Oops.

Related

Error: module' object has no attribute 'symlink

I am installing Ansible using Python2.7 but I am having an error upon installation.
Here are my steps and I am using Windows 10 64 bit
Install Python 2.7
Go to command line and go to directory C:\Python27\Scripts
Type command pip install ansible
Error
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\dave\\appdata\\local\\temp\\pip-build-_tn3so\\ansible\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\dave\appdata\local\temp\pip-ltscus-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\dave\appdata\local\temp\pip-build-_tn3so\ansible\
As is clearly stated in the fine manual, Windows is not supported for use as a control machine. Even if you got it to install, the next problem you'd have is trying to convince it to use a sane ssh client, of which PuTTY is not one.
I am sure you can use the Windows Subsystem for Linux to gain access to a reasonable operating system inside the unreasonable one

Installing requirements.txt

I am new to the Wagtail cms and am taking over a friend's project for his site.
I have downloaded his repo and am trying to get it to run locally. I have followed the steps on the wagtail documentation http://docs.wagtail.io/en/v1.12.1/getting_started/index.html
but in the site's requirements.txt file, there are some dependencies that just are not installing and giving errors:
here is the output of when trying to install the requirements:
build\lib.win32-2.7\psycopg2\_psycopg.pyd : fatal error LNK1120: 62 unresolved externals
error: command 'C:\\Users\\Adam\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\link.exe' failed with exit status 1120
Rolling back uninstall of psycopg2
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\Adam\\appdata\\local\\temp\\pip-build-
bykm5e\\psycopg2\\setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code,
__file__, 'exec'))" install --record c:\users\Adam\appdata\local\temp\pip-
cidizd-record\install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in c:\users\Adam\appdata\local\temp\pip-
build-bykm5e\psycopg2\
(The full output is here: https://pastebin.com/m1ukkei8)
Any help would be greatly appreciated - I am using Python 2.7 and have tried reinstalling psycopg and have installed postresql
Your windows linker is throwing out errors as you don't have c++ libraries for an extension to be built properly.
I would suggest to you to rather install it through wheel file
by running
pip install some-package.whl
I'm not sure if this is the answer, but the version of psycopg2 that you're using had a bug that prevented installation using pip, due to some bug in pip. Try version 2.5.3 and see if that fixes it.

Scrapy Installation throwing error

While installing Scrapy in Windows 10 through command prompt I get this message at the end. Please tell me what could have possibly gone wrong or how do I overcome it.
[WinError 2] The system cannot find the file specified
----------------------------------------
Command "c:\users\sarwar\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Sarwar\\AppData\\Local\\Temp\\pip-build-gigbscvh\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Sarwar\AppData\Local\Temp\pip-xo9y3e03-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Sarwar\AppData\Local\Temp\pip-build-gigbscvh\Twisted\
There are some issues with pip installation of scrapy in windows platform. I would suggest you to use Anaconda to install scrapy and use it. Anaconda comes with may predefined packages which are required by many other packages. Anaconda has always worked like a charm to me while working on python.

How to fix netifaces module installation for python2.7?

Environment : Kali Linux 2
I started reading this book "Python network programming cookbook" and the writers listed few modules I am gonna need during the book i was able to install all of them except #netifaces, I tried both the "pip install netifaces" and "python setup.py install" methods but both made appear this message:
x86_64-linux-gnu-gcc: error trying to exec 'cc1': execvp: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-lsf_5N/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TsHwUh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-lsf_5N/netifaces
Storing debug log for failure in /root/.pip/pip.log
I tried to install python-dev and all the libraries I could find in previous asked questions here but nothing made it happen
Thank you all for your help
It looks like you are missing gcc, which is needed to compile netifaces.
I've never used Kali Linux before but you should have apt so, you can try: sudo apt-get install gcc to install the missing package.
Hopefully this solves your problem.

pip install igraph for python 3.4: compiler error

I want to install python-igraph for Python 3.4 on Mac OSX 10.10.
When I do
jenny$ pip3 install python-igraph
I get
checking whether the C compiler works... no
configure: error: in `/private/var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip_build_jenny/python-igraph/tmp/igraph.p_05kabc/igraph-0.7.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
Extracting igraph-0.7.1.tar.gz...
Configuring igraph...
Could not download and compile the C core of igraph.
----------------------------------------
Cleaning up...
Command /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip_build_jenny/python-igraph/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip-vudi0il0-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip_build_jenny/python-igraph
I checked out this similar question, and the linked githib issue and then tried
pip3 install python-igraph --install-option="--c-core-version=0.7.1"
based on the information I found, with essentially the same error.
Based on the comments in that stackoverflow question, I also tried looking for the developer branch of python-igraph on github but I can't find it.
I'm a little lost. Can anyone tell me how to install this?
Do you have a c compiler installed?
How about Xcode Command Line Tools?
Try executing the following from your terminal:
xcode-select --install
And click the "Install" button on the pop-up window.
After it's installed, verify the Xcode Command Line Tools installation with:
gcc --version
Then try your pip3 installation again.

Categories

Resources