Jun-21-2022, 11:01 PM
i can do the import being tried by pip, so it is not the case of a missing module.
sorry i don't have numpy, yet. let me try installing it:
Output:lt1a/forums/1 /home/forums 14> python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
wait for .init.py to run ... Traceback (most recent call last):
File ".init.py", line 3, in <module>
import decimal,math,numpy,os,os.path,subprocess,sys,time
ModuleNotFoundError: No module named 'numpy'
>>> from pip._vendor import appdirs
>>>
since pip works fine elsewhere, something else must be causing this specific import error as seen in post #1.sorry i don't have numpy, yet. let me try installing it:
Output:lt1a/root/2 /root 4# log-pip-install numpy
Script started, file is ./20220621-184706-087639-install-numpy.log
18:47:06 [87643] EXECUTING: 'pip' 'install' '--cache-dir' '/var/lib/pip-cache' 'numpy'
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
File "/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 31, in <module>
from pip._internal.utils.ui import BAR_TYPES
File "/lib/python3/dist-packages/pip/_internal/utils/ui.py", line 15, in <module>
from pip._vendor.progress import HIDE_CURSOR, SHOW_CURSOR
ModuleNotFoundError: No module named 'pip._vendor.progress'
[[ 0m0s real 0.415 - user 0.198 - sys 0.023 - 53.29% ]]
18:47:07 [87643] FINISHED - status = 1
Script done, file is ./20220621-184706-087639-install-numpy.log
lt1a/root/2 /root 5#
i can't import that one, myself:Output:lt1a/forums/1 /home/forums 16> python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
wait for .init.py to run ... Traceback (most recent call last):
File ".init.py", line 3, in <module>
import decimal,math,numpy,os,os.path,subprocess,sys,time
ModuleNotFoundError: No module named 'numpy'
>>> from pip._vendor.progress import HIDE_CURSOR, SHOW_CURSOR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pip._vendor.progress'
>>>
maybe that really is missing. but "pip._vendor" is there since i could do appdirs. it just isn't making any sense what is really happening. it sure seems like the pip that comes with Ubuntu is broken. so i am looking for a copy of pip i can download into a non-distro Linux (e.g. no repository, like a Linux for those who build C stuff from source).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.