简体   繁体   中英

Enthought canopy python -lpython2.7 not found

I am using Canopy enthought on a machine without su access.

Whenever i try to build any package dependent on python I get this error:

/usr/bin/ld: cannot find -lpython2.7 collect2: ld returned 1 exit status error: command 'g++' failed with exit status 1

Any idea what's going wrong?

I am running Debian OS.

Thanks

Depending on what version of Canopy you're using, try to set your LIBRARY_PATH variable.

Example: export LIBRARY_PATH=~/Enthought/lib

Then try to build the package. This worked for me but I don't know the root cause as to why Canopy virtual environment isn't setting this variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM