pip2pi icon indicating copy to clipboard operation
pip2pi copied to clipboard

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

Open anlianglu opened this issue 5 years ago • 13 comments

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

anlianglu avatar Jul 24 '19 09:07 anlianglu

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.

durden avatar Jul 24 '19 12:07 durden

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

anlianglu avatar Jul 25 '19 06:07 anlianglu

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?

durden avatar Jul 25 '19 08:07 durden

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

anlianglu avatar Jul 26 '19 06:07 anlianglu

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.

durden avatar Jul 26 '19 07:07 durden

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 avatar Jul 26 '19 08:07 anlianglu

image

anlianglu avatar Jul 26 '19 08:07 anlianglu

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

This seems to be same issue as https://github.com/wolever/pip2pi/issues/76, https://github.com/wolever/pip2pi/issues/84 and https://github.com/wolever/pip2pi/issues/73. And if so, I believe that https://github.com/wolever/pip2pi/pull/85 had fixed this.

tikank avatar Jul 26 '19 08:07 tikank

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

anlianglu avatar Jul 26 '19 10:07 anlianglu

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.

tikank avatar Jul 27 '19 09:07 tikank

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

anlianglu avatar Jul 31 '19 01:07 anlianglu

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.

tysonclugg avatar Jun 09 '22 23:06 tysonclugg

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

liupeng0518 avatar Nov 16 '22 09:11 liupeng0518