Kleine Einführung: Ich bin ein Junior-Programmierer, bitte ertragen Sie mit mir.
Ich möchte einen ML-Code aus diesem Beitrag testen. kann nicht Wurzel werden. Dies ist für mich relevant, um die Abhängigkeiten (erwähnte Bibliotheken) zu installieren
Daher dachte ich, ich vermeide das, indem ich einfach PIP3-Installation verwendete. Zeit, und jetzt verstehe ich nicht, wie ich diesen "Benutzer" ändern kann, um es einfach in meinen lokalen Site-Packages unter ~ zu installieren (was zu Hause/myusername )
tl; dr : Ich möchte auch in meinem lokalen Direktory und installieren. Ohne mit dem Stammverzeichnis zu fummeln. Ich weiß nicht, wie PIP3 Install -Benutzer < /code> einen seltsamen Benutzer gibt, der nicht der Benutzer ist, den ich bin.
python3 -m virtualenv env
Using base prefix '/usr'
New python executable in /home/myusername/code/ML/env/bin/python3
Not overwriting existing python script /home/myusername/code/ML/env/bin/python (you must use /home/myusername/code/ML/env/bin/python3)
Installing setuptools, pip, wheel...
Complete output from command /home/myusername/code/ML/env/bin/python3 - setuptools pip wheel:
Looking in indexes: https://pypi.org/simple, https://firstname.lastname:[email protected]/companydev/api/pypi/pypi/simple
Looking in links: /home/myusername/.local/lib/python3.6/site-packages, /home/myusername/.local/lib/python3.6/site-packages/virtualenv_support, /home/myusername/.local/lib/python3.6/site-packages/virtualenv_support
Collecting setuptools
User for companydev.jfrog.io: Exception:
Traceback (most recent call last):
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/basecommand.py", line 228, in main
status = self.run(options, args)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 291, in run
resolver.resolve(requirement_set)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/resolve.py", line 103, in resolve
self._resolve_one(requirement_set, req)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/resolve.py", line 257, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/resolve.py", line 210, in _get_abstract_dist_for
self.require_hashes
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/operations/prepare.py", line 245, in prepare_linked_requirement
req.populate_link(finder, upgrade_allowed, require_hashes)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/req/req_install.py", line 307, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 484, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 442, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 587, in _get_pages
page = self._get_page(location)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 705, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 814, in get_page
"Cache-Control": "max-age=600",
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py", line 521, in get
return self.request('GET', url, **kwargs)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/download.py", line 397, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py", line 625, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/download.py", line 189, in handle_401
username = six.moves.input("User for %s: " % parsed.netloc)
EOFError: EOF when reading a line
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 2343, in
main()
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 712, in main
symlink=options.symlink)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 947, in create_environment
download=download,
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 904, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 796, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/myusername/code/ML/env/bin/python3 - setuptools pip wheel failed with error code 2
Kleine Einführung: Ich bin ein Junior-Programmierer, bitte ertragen Sie mit mir.
Ich möchte einen ML-Code aus diesem Beitrag testen. kann nicht Wurzel werden. Dies ist für mich relevant, um die Abhängigkeiten (erwähnte Bibliotheken) zu installieren
Daher dachte ich, ich vermeide das, indem ich einfach PIP3-Installation verwendete. Zeit, und jetzt verstehe ich nicht, wie ich diesen "Benutzer" ändern kann, um es einfach in meinen lokalen Site-Packages unter ~ zu installieren (was zu Hause/myusername )
[b] tl; dr [/b]: [url=viewtopic.php?t=14917]Ich möchte[/url] auch in meinem lokalen Direktory und installieren. Ohne mit dem Stammverzeichnis zu fummeln. Ich weiß nicht, wie PIP3 Install -Benutzer < /code> einen seltsamen Benutzer gibt, der nicht der Benutzer ist, den ich bin.[code] python3 -m virtualenv env Using base prefix '/usr' New python executable in /home/myusername/code/ML/env/bin/python3 Not overwriting existing python script /home/myusername/code/ML/env/bin/python (you must use /home/myusername/code/ML/env/bin/python3) Installing setuptools, pip, wheel... Complete output from command /home/myusername/code/ML/env/bin/python3 - setuptools pip wheel: Looking in indexes: https://pypi.org/simple, https://firstname.lastname:[email protected]/companydev/api/pypi/pypi/simple Looking in links: /home/myusername/.local/lib/python3.6/site-packages, /home/myusername/.local/lib/python3.6/site-packages/virtualenv_support, /home/myusername/.local/lib/python3.6/site-packages/virtualenv_support Collecting setuptools User for companydev.jfrog.io: Exception: Traceback (most recent call last): File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/basecommand.py", line 228, in main status = self.run(options, args) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 291, in run resolver.resolve(requirement_set) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/resolve.py", line 103, in resolve self._resolve_one(requirement_set, req) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/resolve.py", line 257, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/resolve.py", line 210, in _get_abstract_dist_for self.require_hashes File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/operations/prepare.py", line 245, in prepare_linked_requirement req.populate_link(finder, upgrade_allowed, require_hashes) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/req/req_install.py", line 307, in populate_link self.link = finder.find_requirement(self, upgrade) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 484, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 442, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 587, in _get_pages page = self._get_page(location) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 705, in _get_page return HTMLPage.get_page(link, session=self.session) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 814, in get_page "Cache-Control": "max-age=600", File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py", line 521, in get return self.request('GET', url, **kwargs) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/download.py", line 397, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py", line 508, in request resp = self.send(prep, **send_kwargs) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py", line 625, in send r = dispatch_hook('response', hooks, r, **kwargs) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook _hook_data = hook(hook_data, **kwargs) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/download.py", line 189, in handle_401 username = six.moves.input("User for %s: " % parsed.netloc) EOFError: EOF when reading a line ---------------------------------------- ...Installing setuptools, pip, wheel...done. Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 2343, in main() File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 712, in main symlink=options.symlink) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 947, in create_environment download=download, File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 904, in install_wheel call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT) File "/home/myusername/.local/lib/python3.6/site-packages/virtualenv.py", line 796, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home/myusername/code/ML/env/bin/python3 - setuptools pip wheel failed with error code 2 [/code]
I get this answer:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No...
Ich habe gerade angefangen, mich durch den Per Anhalter zu Python zu arbeiten, und hatte einige Probleme beim Einrichten von PIP- und virtuellen Umgebungen.
Wenn Sie auf die Schaltfläche klicken, sobald der Übergang 300 Sekunden beträgt. Br /> Also, was passiert, wenn Sie auf die Schaltfläche klicken, sobald der Rand in 300 Sekunden –20000px geht. Was...
Wenn Sie auf die Schaltfläche klicken, sobald der Übergang 300 Sekunden beträgt. Br /> Also, was passiert, wenn Sie auf die Schaltfläche klicken, sobald der Rand in 300 Sekunden –20000px geht. Was...
Wenn Sie auf die Schaltfläche klicken, sobald der Übergang 300 Sekunden beträgt. Br /> Also, was passiert, wenn Sie auf die Schaltfläche klicken, sobald der Rand in 300 Sekunden –20000px geht. Was...