Comments (4)
Hello,
Attempting to
pip install pydca
into freshly created conda environment fails on Linux due tobuild/temp.linux-x86_64-3.5/pydca/plmdca/lbfgs/lib/lbfgs.o: file not recognized: file format not recognized collect2: ld returned 1 exit status error: command 'g++' failed with exit status 1
I have gcc 10.1.0-2.
I have resolved the issue, the answer is practically the same as here (solved):
pytorch/pytorch#16683
In summary:
- Create new python env and activate it
- Git clone the repository to a directory of your choosing.
- Run
python setup.py clean
- If using miniconda3: run
cd ~/miniconda3/envs/ENV_NAME/compiler_compat/
, else if using Anaconda: run~/anaconda/envs/ENV_NAME/compiler_compat/
- Run
mv ld ld_old
- Go back to dca repository
- Run
bash install.sh
This should fix any issues with GCC compilation. The issue is that pydca is accessing the miniconda3/anaconda ld-linker when is should be using the system version.
Hope this helps.
Dean
from pydca.
I am also having this issue. I have tried installing from a fresh environment, both from pip and from install.sh but nothing seems to work.
file not recognized: file format not recognized collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1
from pydca.
Important note:
I found that the installation is in conflict with the latest version of Python (version 3.9). Before following the above instructions, make sure to install Python==3.7 into your newly initialized env before running steps 1-7.
best,
D
from pydca.
Important note:
I found that the installation is in conflict with the latest version of Python (version 3.9). Before following the above instructions, make sure to install Python==3.7 into your newly initialized env before running steps 1-7.best,
D
Thanks for the instructions.
Installing with python=3.7 was the crucial moment for me, as it allowed for an error-free installation without the trick of renaming the ld-linker. Although, when installed, it throws Segmentation fault
on any attempt to run pydca
, which is another issue.
from pydca.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydca.