can't open file 'pip': [Errno 2] No such file or directory

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
karelhuis
Posts: 11
Joined: Tuesday 13 August 2019 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

can't open file 'pip': [Errno 2] No such file or directory

Post by karelhuis »

I'm trying to install the Tuya plugin but it doesn't want to instal..
Of course i do everything according to the book, but I get the following error with 2 actions.

sudo python3 pip install requests
sudo python3 pip install tuyaha

sudo python3 pip install requests
python3: can't open file 'pip': [Errno 2] No such file or directory

sudo python3 pip install tuyaha
python3: can't open file 'pip': [Errno 2] No such file or directory

I've tried downloading the plugins in other folders and then installing them but no matter what I try I keep getting the error that it's not in the folders, even though I can see it.

What am I doing wrong?


Version: 2023.1
Build Hash: f9b9ac774
Compile Date: 2023-02-14 15:06:40
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: can't open file 'pip': [Errno 2] No such file or directory

Post by willemd »

you need to install pip before you try to use it.

sudo apt install python3-pip
karelhuis
Posts: 11
Joined: Tuesday 13 August 2019 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't open file 'pip': [Errno 2] No such file or directory

Post by karelhuis »

i did ... and then this....

pi@raspberrypi:~ $ sudo apt install python3-pip
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
python3-pip is reeds de nieuwste versie (18.1-5+rpt1).
De volgende pakketten zijn automatisch geïnstalleerd en zijn niet langer nodig:
gyp libc-ares2 libexiv2-14 libgfortran3 libgmime-2.6-0 libjs-inherits
libjs-is-typedarray libncurses5 libssl-dev libssl1.0.2 libuv1-dev
node-abbrev node-ajv node-ansi node-ansi-align node-ansi-regex
node-ansi-styles node-ansistyles node-aproba node-archy
node-are-we-there-yet node-asn1 node-assert-plus node-asynckit
node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-bluebird
node-boxen node-brace-expansion node-builtin-modules node-builtins
node-cacache node-call-limit node-camelcase node-caseless node-chalk
node-chownr node-cli-boxes node-cliui node-clone node-co node-color-convert
node-color-name node-combined-stream node-concat-map node-concat-stream
node-config-chain node-console-control-strings node-copy-concurrently
node-core-util-is node-cross-spawn node-cyclist node-dashdash
node-decamelize node-decompress-response node-deep-extend node-defaults
node-delayed-stream node-delegates node-detect-indent node-detect-newline
node-duplexer3 node-duplexify node-ecc-jsbn node-editor node-encoding
node-end-of-stream node-errno node-escape-string-regexp node-execa
node-extend node-extsprintf node-find-up node-flush-write-stream
node-forever-agent node-form-data node-from2 node-fs-vacuum
node-fs-write-stream-atomic node-fs.realpath node-gauge node-get-caller-file
node-get-stream node-getpass node-glob node-got node-graceful-fs
node-har-schema node-har-validator node-has-flag node-has-symbol-support-x
node-has-to-string-tag-x node-has-unicode node-hosted-git-info
node-http-signature node-iconv-lite node-iferr node-import-lazy
node-imurmurhash node-inflight node-inherits node-ini node-invert-kv
node-is-builtin-module node-is-npm node-is-object node-is-plain-obj
node-is-retry-allowed node-is-stream node-is-typedarray node-isarray
node-isexe node-isstream node-isurl node-jsbn node-json-parse-better-errors
node-json-schema node-json-stable-stringify node-json-stringify-safe
node-jsonify node-jsonparse node-jsonstream node-jsprim node-latest-version
node-lazy-property node-lcid node-libnpx node-locate-path node-lockfile
node-lowercase-keys node-lru-cache node-mem node-mime-types node-mimic-fn
node-mimic-response node-minimatch node-minimist node-mississippi
node-mkdirp node-move-concurrently node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npm-package-arg node-npm-run-path
node-npmlog node-oauth-sign node-object-assign node-once node-opener
node-os-locale node-osenv node-p-cancelable node-p-finally node-p-limit
node-p-locate node-p-timeout node-package-json node-parallel-transform
node-path-exists node-path-is-absolute node-path-is-inside
node-performance-now node-prepend-http node-process-nextick-args
node-promise-inflight node-promzard node-proto-list node-prr node-pump
node-pumpify node-punycode node-qs node-qw node-rc node-read
node-read-package-json node-readable-stream node-registry-auth-token
node-registry-url node-request node-require-directory
node-require-main-filename node-resolve-from node-retry node-rimraf
node-run-queue node-safe-buffer node-semver node-semver-diff
node-set-blocking node-sha node-shebang-command node-shebang-regex
node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri
node-stream-each node-stream-iterate node-stream-shift node-string-decoder
node-string-width node-strip-ansi node-strip-eof node-strip-json-comments
node-supports-color node-tar node-term-size node-text-table node-through
node-through2 node-timed-out node-tough-cookie node-tunnel-agent
node-tweetnacl node-typedarray node-uid-number node-unique-filename
node-unpipe node-url-parse-lax node-url-to-options node-util-deprecate
node-uuid node-validate-npm-package-license node-validate-npm-package-name
node-verror node-wcwidth.js node-which node-which-module node-wide-align
node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
node-yargs-parser nodejs-doc uuid-dev
Gebruik 'sudo apt autoremove' om ze te verwijderen.
0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 102 niet opgewaardeerd.
pi@raspberrypi:~ $ sudo python3 pip install requests
python3: can't open file 'pip': [Errno 2] No such file or directory
pi@raspberrypi:~ $
karelhuis
Posts: 11
Joined: Tuesday 13 August 2019 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't open file 'pip': [Errno 2] No such file or directory

Post by karelhuis »

And then i tried this.....

pi@raspberrypi:~ $
pi@raspberrypi:~ $ cd /usr/lib/libreoffice/share/Scripts/python
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 pip install requests
python3: can't open file 'pip': [Errno 2] No such file or directory
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo /etc/init.d/domoticz.sh restart
[ ok ] Restarting domoticz.sh (via systemctl): domoticz.service.
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 get-pip.py
python3: can't open file 'get-pip.py': [Errno 2] No such file or directory
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo wget https://bootstrap.pypa.io/get-pip.py
--2023-07-19 20:23:02-- https://bootstrap.pypa.io/get-pip.py
Herleiden van bootstrap.pypa.io (bootstrap.pypa.io)... 2a04:4e42:9::175, 151.101.36.175
Verbinding maken met bootstrap.pypa.io (bootstrap.pypa.io)|2a04:4e42:9::175|:443... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: 2605400 (2,5M) [text/x-python]
Wordt opgeslagen als: ‘get-pip.py’

get-pip.py 100%[===============================>] 2,48M 3,11MB/s in 0,8s

2023-07-19 20:23:04 (3,11 MB/s) - '‘get-pip.py’' opgeslagen [2605400/2605400]

pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 get-pip.py
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Using cached https://www.piwheels.org/simple/pip/pip ... ne-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.2
Uninstalling pip-23.2:
Successfully uninstalled pip-23.2
Successfully installed pip-23.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 pip install requests
python3: can't open file 'pip': [Errno 2] No such file or directory
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 pip install tuyaha
python3: can't open file 'pip': [Errno 2] No such file or directory
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 pip install tuyaha
python3: can't open file 'pip': [Errno 2] No such file or directory
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $ sudo python3 pip install requests
python3: can't open file 'pip': [Errno 2] No such file or directory
pi@raspberrypi:/usr/lib/libreoffice/share/Scripts/python $
zicht
Posts: 272
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: can't open file 'pip': [Errno 2] No such file or directory

Post by zicht »

Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
karelhuis
Posts: 11
Joined: Tuesday 13 August 2019 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: can't open file 'pip': [Errno 2] No such file or directory

Post by karelhuis »

YES IT WORKS !!
I dit a Domoticz reinstal
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest