conan: pip install on Windows causes "failed to create process"
When I use pip install conan
to install conan, it will be installed successfully but then runinng conan
will be failed by this error:
failed to create process
My config is: Windows 10 64bit Python 3.5.1 64bit
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 30 (12 by maintainers)
So I had a similar problem yesterday, and it sounds like I can help with this issue. The windows installer for Python3+ 64-bit will put create the python directory under the Program Files (C:\Program Files\Python3x). When you try to run conan, you will be running the conan-script.py in the Python\Scripts directory. The first line of that file when using pip install and default windows installation of Python will look like this #!c:\program files\python35\python.exe. This is a problem because of the space in program files, but can be fixed by encapsulating the path in quotes like so that windows will treat the space as part of the path: #!“c:\program files\python35\python.exe”.
TL;DR Encapsulate the path in the first line of C:\Program Files\Python35\Scripts\conan-script.py to #!“c:\program files\python35\python.exe” to fix the issue
Glad that it works with the installer. The question is, are you using Python 3.5 for something else? Would you mind installing instead the x86 version? https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe
If you are just fine running with the installer version, then this issue could be closed. Thank you!
Thanks for your answer @memsharded. You’re right, its a python issue and not a conan one, I did not realize it. Furthermore, this pb was indeed corrected in python 3.5.3.
Yes we plan to support Python3, we will improve it, accept pull rquests related to it… it is just that it was recently introduced and it might be slightly less mature. This seems not to be a Python3 issue, but a Python3 64bits - 32bits issue. There are other users using Python3 from pip successfully, so my guess was the python 32/64. Ok, lets keep this open, it is not an urgent issue, as you can work from the installer, we will have a look when possible. Thanks again!
I’m not using
virtualenv
. The conan works fine by installing via Windows installer you provided.