%pip stopped working in Pythonista Lab version 1.0 (8) #48
Unanswered
RichardPotthoff
asked this question in
Q&A
Replies: 1 comment
-
|
For now I have a work around: def sh_cmd(cmdln):
import sys
import shlex
saved_argv=sys.argv
sys.argv=shlex.split(cmdln)
try:
if sys.argv[0]=='pip':
from pip._internal.cli.main import main as _main
return(_main())
finally:
sys.argv=saved_argvThis works, but there seem to be built-in site packages that are only partially installed, e.g.:
When I try to install the missing sh_cmd("pip install fonttools")
import fontToolsI get the following error: I got rid of the "no module named rpds" error by installing an older version of jsonschema: sh_cmd("pip install jsonschema==3.2.0");The installation succeeds, but I get a few warnings: Despite the warning, some of the modules that could not be imported because of the "No module named 'rpds'"-error are now working: e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I enter
%pipin the Pythonista Lab console, I get the following error message:The command worked initially in the current Pythonista Lab version 1.0 (8), and I was able to install additional
site-packages. Apparently one of the packages I installed interferes with the Pythonista Lab installation.Pythonista Lab 1.0 (7) had the same problem.
Restarting the kernel (by closing and re-opening the app) did not help.
Beta Was this translation helpful? Give feedback.
All reactions