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

Cannot locate packages. Manual installation required. #243

Closed
Enjia opened this issue May 23, 2017 · 4 comments · Fixed by #314
Closed

Cannot locate packages. Manual installation required. #243

Enjia opened this issue May 23, 2017 · 4 comments · Fixed by #314

Comments

@Enjia
Copy link

Enjia commented May 23, 2017

I want to pip the sklearn packages and this issue occured:

[~/Documents]$ pip install sklearn
Querying PyPI ...
Downloading package ...
Opening: https://pypi.python.org/packages/1e/7a/dbb3be0ce9bd5c8b7e3d87328e79063f8b263b2b1bfa4774cb1147bfcd3f/sklearn-0.0.tar.gz
Save as: /private/var/mobile/Containers/Data/Application/2FDF8EB1-7BD8-4F6B-BF13-835FD5626CA9/tmp//sklearn-0.0.tar.gz (1148 bytes)
1148 [100.00%]
Extracting archive file ...
Archive extracted.
Running setup file ...
PipError('cannot locate source folder/file: /private/var/mobile/Containers/Data/Application/2FDF8EB1-7BD8-4F6B-BF13-835FD5626CA9/tmp/c94a7735c38f47a3b7098ff3def7eaae/sklearn-0.0/wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141.py',)
Failed to run setup.py
Fall back to directory guessing ...
Error: Cannot locate packages. Manual installation required.

Is there any solution to solve this problem?

@dgelessus
Copy link
Contributor

sklearn is not the correct PyPI package name:

Use scikit-learn instead.

The correct package name is scikit-learn. However, scikit-learn requires SciPy, which is not available in Pythonista, so it's not possible to install scikit-learn in Pythonista.

@Enjia
Copy link
Author

Enjia commented May 23, 2017

Thanks a lot!
BTW, is Pythonista suitable for machine learning? Because I'm studying this course~

@dgelessus
Copy link
Contributor

That depends on what modules you need. A bunch of modules are preinstalled with Pythonista, but nothing machine-learning-related, I think. You can also install pure Python modules yourself (using Stash pip, or by manually copying the module files into site-packages), but you cannot install extension modules that use native code (C, C++, Assembly, Fortran, etc.). Apple has strict requirements about how native libraries have to be signed, which makes it impossible to use any native libraries in Pythonista, unless they came with iOS or the app itself.

@tchy
Copy link

tchy commented Jun 1, 2017

and why?
[~/Documents]$ pip install pypng
Querying PyPI ...
Downloading package ...
Opening: https://pypi.python.org/packages/2f/b1/c8dfcf50feb12a30be7d95c5f45d638704682487d8e50419ef41463febcd/pypng-0.0.18.tar.gz
Save as: /private/var/mobile/Containers/Data/Application/266D588E-6FF6-4CD4-A25D-542961114B7E/tmp//pypng-0.0.18.tar.gz (377942 bytes)
377942 [100.00%]
Extracting archive file ...
Archive extracted.
Running setup file ...
IOError(2, 'No such file or directory')
Failed to run setup.py
Fall back to directory guessing ...
Error: Cannot locate packages. Manual installation required.

bennr01 added a commit to bennr01/stash that referenced this issue May 4, 2018
#About this commit/PR
This is a commit/PR to close a large number of old/fixed issues at once using the github `fix #<issuenumber>` syntax.
Below is a list of all issues which will automatically be closed by merging this commit/PR into `ywangd/master`.
Behind each issue number is a short summary about the issue or why it can be closed.

#Issues which can be closed

**Py3 related:**
- fix ywangd#281 (py3 had not yet been supported)
- fix ywangd#261 (python3 pip installation)
- fix ywangd#246 (python3 code in python2)
- fix ywangd#222 (python3 command in stash)
- fix ywangd#200 (pip now works (at least partially) with python3)
- close ywangd#197 (general pythonista3 compatibility thread)


**Questions which have been answered / unfixable bugs:**
- close ywangd#310 (pip installation with c code)
- close ywangd#292 (StaSh is not dead; also a question regarding py3)
- close ywangd#290 (pip installation, problem solved)
- close ywangd#289 (answer provided, no further activity by reporter)
- close ywangd#279 (pip install protects standard distribution)
- close ywangd#245 (answered)
- close ywangd#244 (not possible (unless someone finds a workaround)
- close ywangd#243 (c-code in pip installation)
- close ywangd#208 (question answered)


**implemented suggestions/changes:**
- fix ywangd#273 (partially implemented as part of py2and3)
- fix ywangd#193 (implemented by now)
- fix ywangd#63  (subcommand completion; implemented long ago)
- fix ywangd#39  (pip; implemented long ago)

**fixed bugs:**
- fix ywangd#308 (https error in pip; fixed)
- fix ywangd#223 (old beta-related bug)
- fix ywangd#211 (old beta-related bug)
- fix ywangd#209 (seems to be fixed, can not reproduce)
- fix ywangd#206 (git did not clone into subdirectory; fixed)
- fix ywangd#98  (telnet did not send \r\n; fixed)


**other stuff:**
- close ywangd#260 (no useful bug description)
- close ywangd#258 (no useful bug description)
- close ywangd#251 (not a bug but an announcement, no longer relevant)
- close ywangd#241 (works now)
- close ywangd#219 (no further acivity by reporter, likely user error)


#Issues which can be closed, but where the underlying issue has not been fixed
- close ywangd#285 (pip command too complex)
- close ywangd#291 (pip installation question, but not c-code related. But seems package-related)
- close ywangd#274 (pip install problem, at least partial related to c-code, no further activity by reporter)
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

Successfully merging a pull request may close this issue.

3 participants