Comments (4)
Thanks for reporting this @Marco-Santoni. From my quick read of pypa/pip#25 I think I understand the problem and how to fix it. I'll close this issue when fixed.
from py-earth.
Thanks, as I need to fix this asap, I've forked the repo and tried to fix the setup.py
. However, as I'm not confident with setup.py
and Cython, I cannot solve it. Could you please explain how you would solve it, or even commit the fix?
from py-earth.
Well, I think the solution has to do with ilblackdragon's comment near the end of the pypa/pip#25.
It's better to handle egg_info, clean and help commands as special case (at least this is what has been done in scipy (https://github.com/scipy/scipy/blob/master/setup.py) and some other libraries that depend on numpy):
if '--help' in sys.argv[1:] or \
sys.argv[1] in ('--help-commands', 'egg_info', 'clean', '--version'):
...
else:
import numpy
...
The problem has to do with the fact that setup.py imports numpy in order to determine the build path. However, when just trying to get package dependency information on a system without numpy, this import causes an error. You would need to change setup.py so that it imports numpy only if it's actually going to do a build. At least that is my understanding.
I wish I could help more. If you have trouble, post more questions. I just have some projects going on right now and don't really have time to set up a testing environment and experiment with this. I should be able to respond to questions, though. If I get time, I will try to fix this from my end, but I expect that won't happen until next week.
from py-earth.
from py-earth.
Related Issues (20)
- unable to install py-earth HOT 1
- Installation fails on python3.7 HOT 7
- Change zero_tol default value
- Smaller dataset takes 10 times longer for training
- py-earth build error. HOT 5
- Is it possible to extract the remaining basis function from the algorithm for further calculation? HOT 1
- Instalation Fails python3.8 HOT 14
- Please include cython files in pypi package
- Fit() function throwing a TypeError HOT 2
- Unable to import Earth on multiple platforms HOT 5
- Can't Install on Mac OSX 11.x (Big Sur) HOT 3
- Is there a way to get the hinge points as a list? HOT 3
- Is pyearth a a trademarked algorithm? HOT 1
- Installation of pyearth with python 3.8.10 HOT 57
- Installing pyearth with docker image python:3.10.8-slim fails
- Exporting a fitted Earth models as a sympy expression
- Unable to fit Earth() over multiple X variables HOT 7
- Py-earth and numpy 1.25 HOT 3
- pip install sklearn-contrib-py-earth on COLAB fail
- error install sklearn-contrib-py-earth in python 3.11
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 py-earth.