I am trying to install CPLEX for python from the setup.py file existing in ILOG directory.
I am working on windows 8 32bit and python 2.7. I am using this command for installing:
python setup.py install
But I get this error,
error: could not create 'build': access is denied.
Is it due to the permission? How can I fix this?
thanks
I have no idea about CPLEX but processes in windows8 usually don't get write access to certain directories.
You could try to make your call "python setup.py install" in a cmd started as adminstrator, for example: windows key, search "cmd", right click, "run as adminstrator" ...
Related
I'm using Python 3.10.4. I'm trying to work on a Django project, but when I create a Virtualenv then installing the package is not working.
PS C:\Users\schad\Desktop\importExport> & c:/Users/schad/Desktop/importExport/env/Scripts/Activate.ps1
(env) PS C:\Users\schad\Desktop\importExport> pip install django-import-export
Fatal error in launcher: Unable to create process using '"C:\Users\schad\Desktop\env\Scripts\python.exe" "C:\Users\schad\Desktop\importExport\env\Scripts\pip.exe" install django-import-export': The system cannot find the file specified.
(env) PS C:\Users\schad\Desktop\importExport> pip install mysqlclient
Fatal error in launcher: Unable to create process using '"C:\Users\schad\Desktop\env\Scripts\python.exe" "C:\Users\schad\Desktop\importExport\env\Scripts\pip.exe" install mysqlclient': The system cannot find the file specified.
(env) PS C:\Users\schad\Desktop\importExport>
It's weird, the terminal trying to using
C:\Users\schad\Desktop\env\Scripts\python.exe
but it should be
C:\Users\schad\Desktop\importExport\env\Scripts\pip.exe,
Could you try to switch the python interpreter to another one? And please check whether you have configured something in your settings.json file although this should be stored in the storage under C:\Users\{UserName}\AppData\Roaming\Code\User folder.
You can try to switch to another python interpreter and then switch back, if it still does not work you can delete state.vscdb under C:\Users\{UserName}\AppData\Roaming\Code\User\globalStorage folder.
I just installed Python 3.10.1 on Windows 11 and while following some tutorials I started with the basics of making sure everything looks right in the command prompt. I also added all the necessary data into the PATH variable.
When I run the simple command pip, the result is "Fatal error in launcher: Unable to create process using '"C:\Python310\python.exe" "C:\Python310\Scripts\pip.exe" ': The system cannot find the file specified."
However, when I run the command py -m pip I get the results I would expect when running pip.
Is there a way to fix the original command, or is this a new Windows 11 or Python 3.10.1 update of syntax?
I am new to Python and am trying to install Eve. I have Python 3.6.3 installed and am using pipenv. When I run pipenv install eve it fails with the error (here's an excerpt):
running build_ext
building 'simplejson._speedups' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib'
_______________________________________
Error: An error occurred while installing eve!
Failed building wheel for simplejson
From what I can tell, this path is for the Windows 8.1 SDK.
What can I do to fix this? Do I need to install this SDK in order for simplejson to work? I don't really want to install this SDK, so why does simplejson need this?
I suspect that I don't actually need this SDK as I assume all of this can normally be executed in a Linux environment. Why would this dependency exist when executing on a Windows 7 machine as I am trying to do?
I found the answer. Yes, I do need the SDK. Windows compilers are required to "Install a non-pure Python package from sources with Pip" on Windows machines and are included in Microsoft Build Tools. More information can be found here: https://wiki.python.org/moin/WindowsCompilers
I am doing a project in python where I have a very large dataset where I have to do a fisher exact test. This must be done 600,000,000 times so efficiency is quite important. However, with the scipy package this takes 50 hours, but I have read that https://pypi.python.org/pypi/fisher/ should be much faster. But I don't understand how to get it installed in Windows 8.
I have tried using: python setup.py install, this gives the error:
D:\Programmer\Python\Scripts\fisher-0.1.4>python setup.py install
running install
running build
running build_py
running build_ext
building 'fisher/cfisher' extension
error: Unable to find vcvarsall.bat
what is wrong?
This is how you do it:
Type into the Command Prompt window:
set path=%path%;C:\Python27\
And hit enter.
Use the complete path to the folder using CD.
eg: cd c:\Users\fisher-0.1.4
Then type python setup.py install
I'm trying to install zeromq in windows7. I'm following the instructions given in the documents of zeromq: http://zeromq.org/docs:windows-installations
When I enter this command
python setup.py configure --zmq=../libzmq
I get this error
sh.exe : python: command not found.
How to solve this error and install zmq in windows?
You need to add python to your path environment variable. This will fix the installation error.