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
Related
I am trying to install vowpalwabbit by using pip in Windows.
My python version is 3.7. As I am new in using vowpalwabbit, it is possible that I forget to configure some external dependencies. Therefore, can you please explain every single the step to make it work. I got the following error when I run the following:
pip install vowpalwabbit
raise Exception('Pre-built vw/python library for Windows is not supported for this python version')
Exception: Pre-built vw/python library for Windows is not supported for this python version```
----------------------------------------
Command "C:\Users\I516\Documents\Newsfeed\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\I336\\AppData\\Local\\Temp\\pip-install-3tgy0rvf\\vowpalw
abbit\\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\I336\AppDa
ta\Local\Temp\pip-record-o5qdntld\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\I336\Documents\Newsfeed\venv\include\site\python3.7\vowp
alwabbit" failed with error code 1 in C:\Users\I336\AppData\Local\Temp\pip-install-3tgy0rvf\vowpalwabbit\```
A new version of vowpalwabbit (8.7.0) was released to PyPI last week. In addition, binary wheels for 64-bit Python 3.6/3.7 are available for Windows.
If you're using the 64-bit version of Python (or can switch to using it):
pip install vowpalwabbit
should work properly without any additional dependencies
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.
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.
In order to install auto-sklearn, I have installed Python3 (which is a requirement) via Homebrew. I have aliased the Python version in my .bash_profile as alias python='python3' such that the following is true:
$python -V
>> Python 3.6.1
But when I curl the dependencies, I get the following error:
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/46/rh_gbvxn2q19xbn10grfz3r00000gn/T/pip-build-VBNFhl/pyrfr/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/46/rh_gbvxn2q19xbn10grfz3r00000gn/T/pip-q9LGfp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/46/rh_gbvxn2q19xbn10grfz3r00000gn/T/pip-build-VBNFhl/pyrfr/
Which clearly indicates that it is trying to use Python2.7 to execute an installation command. How do I force my system to execute that command with Python3?
Try pip3 install or python3.6 -m pip install.
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.