2024-05-25 15:54:04 (3.98 MB/s) - \u2018get-pip.py.1\u2019 saved [2635835/2635835]
u222290@s001-n145:~/Python-3.10.5pythonget−pip.py−−userERROR:ThisscriptdoesnotworkonPyt ./python get-pip.py --user
Collecting pip
Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Collecting wheel
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Downloading pip-24.0-py3-none-any.whl (2.1 MB)
\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.1/2.1 MB 3.7 MB/s eta 0:00:00
Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
Installing collected packages: wheel, pip
Successfully installed pip-24.0 wheel-0.43.0
u222290@s001-n145:/Python-3.10.5u222290@s001−n145: /Python−3.10.5 ./pip pip install --user package_name
bash: ./pip: No such file or directory
u222290@s001-n145:/Python-3.10.5 pip3
Usage:
pip3 [options]
Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
inspect Inspect the python environment.
list List installed packages.
show Show information about installed packages.
check Verify installed packages have compatible dependencies.
config Manage local and global configuration.
search Search PyPI for packages.
cache Inspect and manage pip's wheel cache.
index Inspect information available from package indexes.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion.
debug Show information useful for debugging.
help Show help for commands.
General Options:
-h, --help Show help.
--debug Let unhandled exceptions propagate outside the
main subroutine, instead of logging them to
stderr.
--isolated Run pip in an isolated mode, ignoring
environment variables and user configuration.
--require-virtualenv Allow pip to only run in a virtual environment;
exit with an error otherwise.
--python Run pip with the specified Python interpreter.
-v, --verbose Give more output. Option is additive, and can be
used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output. Option is additive, and can be
used up to 3 times (corresponding to WARNING,
ERROR, and CRITICAL logging levels).
--log Path to a verbose appending log.
--no-input Disable prompting for input.
--keyring-provider <keyring_provider>
Enable the credential lookup via the keyring
library if user input is allowed. Specify which
mechanism to use [disabled, import, subprocess].
(default: disabled)
--proxy Specify a proxy in the form
scheme://[user:passwd@]proxy.server:port.
--retries Maximum number of retries each connection should
attempt (default 5 times).
--timeout Set the socket timeout (default 15 seconds).
--exists-action Default action when a path already exists:
(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
--trusted-host Mark this host or host:port pair as trusted,
even though it does not have valid or any HTTPS.
--cert Path to PEM-encoded CA certificate bundle. If
provided, overrides the default. See 'SSL
Certificate Verification' in pip documentation
for more information.
--client-cert Path to SSL client certificate, a single file
containing the private key and the certificate
in PEM format.
--cache-dir Store the cache data in .
--no-cache-dir Disable the cache.
--disable-pip-version-check
Don't periodically check PyPI to determine
whether a new version of pip is available for
download. Implied with --no-index.
--no-color Suppress colored output.
--no-python-version-warning
Silence deprecation warnings for upcoming
unsupported Pythons.
--use-feature Enable new functionality, that may be backward
incompatible.
--use-deprecated Enable deprecated functionality, that will be
removed in the future.
u222290@s001-n145:~/Python-3.10.5$ pip3 install --user package_name
Collecting package_name
Downloading package_name-0.1.tar.gz (782 bytes)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
� python setup.py egg_info did not run successfully.
\u2502 exit code: 1
\u2570\u2500> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
� Encountered error while generating package metadata.
\u2570\u2500> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
u222290@s001-n145:~/Python-3.10.5 jupyter notebook --generate-config
Traceback (most recent call last):
File "/home/u222290/python3.10/lib/python3.10/site-packages/jupyter_server/services/sessions/sessionmanager.py", line 14, in
import sqlite3
File "/home/u222290/python3.10/lib/python3.10/sqlite3/.py", line 57, in
from sqlite3.dbapi2 import *
File "/home/u222290/python3.10/lib/python3.10/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/u222290/python3.10/bin/jupyter-notebook", line 5, in
from notebook.app import main
File "/home/u222290/python3.10/lib/python3.10/site-packages/notebook/app.py", line 17, in
from jupyter_server.serverapp import flags
File "/home/u222290/python3.10/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 107, in
from jupyter_server.gateway.managers import (
File "/home/u222290/python3.10/lib/python3.10/site-packages/jupyter_server/gateway/managers.py", line 33, in
from ..services.sessions.sessionmanager import SessionManager
File "/home/u222290/python3.10/lib/python3.10/site-packages/jupyter_server/services/sessions/sessionmanager.py", line 17, in
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef]
ModuleNotFoundError: No module named 'pysqlite2'
u222290@s001-n145:~/Python-3.10.5