Page 1 of 1

pip install issue - Windows 10

Posted: Tue Sep 18, 2018 5:19 pm
by dramos
Hello,

When trying to install pybullet with pip option (pip3 install PyBullet / pip install PyBullet / pip install -U PyBullet) I always get following errors:

Code: Select all

    LINK : error LNK2001: unresolved external symbol PyInit_eglRenderer
    build\temp.win32-3.6\Release\examples/SharedMemory/plugins/eglPlugin\eglRenderer.cp36-win32.lib : fatal error LNK112
0: 1 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin
\\HostX86\\x86\\link.exe' failed with exit status 1120

    ----------------------------------------
Command "c:\users\davidramoscalvo\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokeniz
e;__file__='C:\\Users\\DAVIDR~1\\AppData\\Local\\Temp\\pip-install-ewdgrrj_\\PyBullet\\setup.py';f=getattr(tokenize, 'op
en', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --reco
rd C:\Users\DAVIDR~1\AppData\Local\Temp\pip-record-u9tbhef_\install-record.txt --single-version-externally-managed --com
pile" failed with error code 1 in C:\Users\DAVIDR~1\AppData\Local\Temp\pip-install-ewdgrrj_\PyBullet\
I'm using Windows 10 / python 3.6 / pip version 18.0 / Visual Studio 2017

Does anybody have the same issue?

Thank you

Re: pip install issue - Windows 10

Posted: Wed Sep 19, 2018 1:22 am
by ph_bullet
I get the same error message when trying to install pybullet
with command pip install pybullet

I use Windows 7 / python 3.7 / pip version 18.0 / MS C++ Compile tools

Re: pip install issue - Windows 10

Posted: Wed Sep 19, 2018 11:40 pm
by _pillow
Same here I had to install version 2.1.3

you can try:
pip install pybullet==2.1.3

Re: pip install issue - Windows 10

Posted: Thu Sep 20, 2018 11:02 pm
by Erwin Coumans
The latest pybullet should work fine.
Can you try

Code: Select all

pip install pybullet==2.1.9
or

Code: Select all

pip install -U -no-cache-dir pybullet
See also https://github.com/bulletphysics/bullet3/issues/1888

Re: pip install issue - Windows 10

Posted: Fri Sep 21, 2018 6:31 am
by ph_bullet
I tested both ways to build v2.1.9 and still get the same error message.

BTW: I'm building it from Anaconda prompt, in case it matters.

Re: pip install issue - Windows 10

Posted: Fri Sep 21, 2018 5:10 pm
by Erwin Coumans
eglRender plugin should only be enabled on Linux. PyBullet 2.2.0 should fix it.

Code: Select all

pip install --no-cache-dir -U pybullet
Can you try it and report back?

Re: pip install issue - Windows 10

Posted: Sat Sep 22, 2018 12:25 pm
by ph_bullet
Now building was succesful. V2.2.0
Thanks!

Re: pip install issue - Windows 10

Posted: Wed Sep 26, 2018 10:17 am
by dramos
Issue is solved.

Thank you!!

Re: pip install issue - Windows 10

Posted: Tue Mar 05, 2019 11:09 am
by shanteshmani
Hi I am having same issue

have tried installing using several methods

Code: Select all

pip install gym==0.10.5
pip install pybullet==2.0.8
also attempted as per previous posts

Code: Select all

pip install -U -no-cache-dir pybullet
keep getting this same error

Code: Select all

Command "c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\shant\\AppData\\Local\\Temp\\pip-install-z24ne3k4\\pybullet\\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\shant\AppData\Local\Temp\pip-record-8_lbo5pk\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\shant\AppData\Local\Temp\pip-install-z24ne3k4\pybullet\