Python installation directory (hit ENTER to use c:\Python27): C:\Users\12096\AppData\Local\Programs\Python\Python37-32Īgain, when I run my python shell, I fail to import gurobipy. I have also tried running the setup script, C:\gurobi811\win64\bin\pysetupīy passing in my python path, but this didn't resolve my issue either. Generally, it seems like if I get this Import Error, then I didn't run the setup.py install script, but I did run the script and I'm still getting the error. ImportError: DLL load failed: %1 is not a valid Win32 application. Type "help", "copyright", "credits" or "license" for more information.įile "C:\Users\12096\AppData\Local\Programs\Python\Python37-32\lib\site-packages\gurobipy\_init_.py", line 1, in ![]() Mac and Linux distributions may include an outdated version of Python (Python 2), but you should install an updated one (Python 3). This is the program that reads Python programs and carries out their instructions you need it before you can do any Python programming. Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) on win32 Getting Python Next, install the Python 3 interpreter on your computer. However, when I run Python and attempt to import gurobipy, I get an error. ![]() Removing C:\Users\12096\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\gurobipy-8.1.1-p圓.7.egg-info C:\gurobi811\win64>python setup.py installĬopying python37\lib\gurobipy\_init_.py -> build\lib\gurobipyĬopying python37\lib\gurobipy\gurobipy.pyd -> build\lib\gurobipy I primarily use the Python interface, so I went ahead and ran the setup.py install script. I installed Python 3.7.4, and then installed Gurobi 8.1.1 and activated my license key. ![]() I have used Gurobi on Linux/Mac before- but I just got a desktop running Windows and was excited to break it in with some ILPs. So I've been struggling with this a few hours. ![]() Type the following command to install pysqlcipher3 module: pip install pysqlcipher3 Wait for the installation to complete. Navigate to the directory where your Python script is located using the 'cd' command. Edit: I worked around this by installing anaconda's python 3.7. Open the command prompt by pressing Windows key R, then type 'cmd' and hit enter.
0 Comments
Leave a Reply. |