Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I install scikit-learn==0.19.1 error report, other no problem #91

Open
anlianglu opened this issue Jul 24, 2019 · 13 comments
Open

I install scikit-learn==0.19.1 error report, other no problem #91

anlianglu opened this issue Jul 24, 2019 · 13 comments

Comments

@anlianglu
Copy link

image
I'm sure I downloaded it locally
image
I did not report an error when I installed the other packages
image
How should I solve this problem
thank you

@durden
Copy link

durden commented Jul 24, 2019

I'm seeing the same issue using an older version of scikit-image, 0.14.2, so guessing it's not specific to a version or package.

It it possible this has something to do with the fact that the import name of scikit-image is skimage and doesn't match the filename like scikit-image? No clue if that matters, but it's the only thing that I can think of at the moment that is weird about scikit image although there are other packages that do the same thing like tables and pytables, etc.

@anlianglu
Copy link
Author

I'm seeing the same issue using an older version of scikit-image, 0.14.2, so guessing it's not specific to a version or package.

It it possible this has something to do with the fact that the import name of scikit-image is skimage and doesn't match the filename like scikit-image? No clue if that matters, but it's the only thing that I can think of at the moment that is weird about scikit image although there are other packages that do the same thing like tables and pytables, etc.

Is there any solution?
I also found that several of the library packages had problems
image
image

image

image
image
It's ok if I install it with a url
pip install http://pypi.yzh/simple/kafka-python/kafka-python-1.4.3-py2.py3-none-any.whl -i http://10.0.3.11/simple/ --trusted-host 10.0.3.11

@durden
Copy link

durden commented Jul 25, 2019

Interesting, any chance that it fails for packages that have - in the name? It looks like the simple/index.html and simple/scikit-image/index.html have the correct names (with dashes) but maybe I'm missing something?

@anlianglu
Copy link
Author

Interesting, any chance that it fails for packages that have - in the name? It looks like the simple/index.html and simple/scikit-image/index.html have the correct names (with dashes) but maybe I'm missing something?

I mean more than one package has a problem, I have encountered several, not the version problem, all versions of several packages have not been installed successfully

scikit-learn
kafka-python

@durden
Copy link

durden commented Jul 26, 2019

That makes sense, if my wild theory of things being broken if the package name includes a - then most likely any version of those packages would fail.

@pacelu Have you seen any package fail that does not have a - in it?

I've only seen scikit-image fail in my testing, and you previously mentioned scikit-image and kafka-python. So, my strange theory of - causing the problems holds there, but I'm wondering if there are any packages that don't follow this pattern that are failing.

@anlianglu
Copy link
Author

That makes sense, if my wild theory of things being broken if the package name includes a - then most likely any version of those packages would fail.

@pacelu Have you seen any package fail that does not have a - in it?

I've only seen scikit-image fail in my testing, and you previously mentioned scikit-image and kafka-python. So, my strange theory of - causing the problems holds there, but I'm wondering if there are any packages that don't follow this pattern that are failing.

yes;I am now sure that there is a problem with index creation;
Now I manually change "kafka-python-1.4.3-py2.py3-none-any.whl" in the index. HTML below simple/kafka-python to "kafka_python-1.4.3-py2.py3-none-any.whl".
image
image
Now I am looking at the command "dir2pi"
image

@anlianglu
Copy link
Author

image

@tikank
Copy link
Contributor

tikank commented Jul 26, 2019

Could you try and test the latest version pip2pi from master branch?

This seems to be same issue as #76, #84 and #73. And if so, I believe that #85 had fixed this.

@anlianglu
Copy link
Author

Could you try and test the latest version pip2pi from master branch?

This seems to be same issue as #76, #84 and #73. And if so, I believe that #85 had fixed this.

However, there will be an error when I install nvidia-ml-py==7.352.0. Is there a solution?
image

@tikank
Copy link
Contributor

tikank commented Jul 27, 2019

That is probably something else. I don't know which commands you are running and what gives that error.

I tried commands:

python3 -m venv env
. env/bin/activate
pip install --upgrade pip wheel
pip install git+https://github.com/wolever/pip2pi.git@master
pip2pi packages/ nvidia-ml-py==7.352.0
pip install -i file:///[path to the package dir]/packages/simple/ nvidia-ml-py==7.352.0

And it the package installed without errors.

@anlianglu
Copy link
Author

That is probably something else. I don't know which commands you are running and what gives that error.

I tried commands:

python3 -m venv env
. env/bin/activate
pip install --upgrade pip wheel
pip install git+https://github.com/wolever/pip2pi.git@master
pip2pi packages/ nvidia-ml-py==7.352.0
pip install -i file:///[path to the package dir]/packages/simple/ nvidia-ml-py==7.352.0

And it the package installed without errors.

I used the #85 solution,and I went with the HTTP service,There is no problem with going local

image
image

@tysonclugg
Copy link

I'm sure I downloaded it locally

The evidence I'm seeing suggests you didn't download the file correctly:
image

I've got no idea how pip2pi is meant to work (is symlinking used?), but it seems this issue might be due to user error.

@liupeng0518
Copy link

new version (0.8)fix this,
If you use old version(0.7) , you can create whl link with "_"(scikit_learn-xxxxx), then edit index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants