GithubHelp home page GithubHelp logo

Comments (2)

sdushantha avatar sdushantha commented on May 14, 2024

Hey @KevinIsMyName,

Kevin@KEVIN-AMD-PC MINGW64 ~
$ pip install wifi-password
Requirement already satisfied: wifi-password in c:\users\kevin\appdata\roaming\python\python38\site-packages (1.0.7)
Requirement already satisfied: qrcode in c:\users\kevin\appdata\roaming\python\python38\site-packages (from wifi-password) (6.1)
Requirement already satisfied: six in c:\users\kevin\appdata\local\programs\python\python38-32\lib\site-packages (from qrcode->wifi-password) (1.14.0)
Requirement already satisfied: colorama in c:\users\kevin\appdata\roaming\python\python38\site-packages (from qrcode->wifi-password) (0.4.4)

Kevin@KEVIN-AMD-PC MINGW64 ~
$ wifi-password
bash: wifi-password: command not found

The reason why this is happening is most likely because the directory which pip stores the scripts/commands that you have installed is not in your $PATH. I unfortunately don't much about Python's directory structure on Windows, so you'll have to try and Google it.


Kevin@KEVIN-AMD-PC MINGW64 ~
$ git clone https://github.com/sdushantha/wifi-password
Cloning into 'wifi-password'...
remote: Enumerating objects: 169, done.
remote: Counting objects: 100% (169/169), done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 169 (delta 105), reused 79 (delta 44), pack-reused 0
Receiving objects: 100% (169/169), 14.63 MiB | 13.15 MiB/s, done.
Resolving deltas: 100% (105/105), done.

Kevin@KEVIN-AMD-PC MINGW64 ~
$ cd wifi-password

Kevin@KEVIN-AMD-PC MINGW64 ~/wifi-password (master)
$ python3 setup.py install
bash: /c/Users/Kevin/AppData/Local/Microsoft/WindowsApps/python3: Permission denied

There must be something wrong with Python3's permissions on your system since when you ran the same command but with python instead, it worked. But like I said earlier, I dont know much about how Python works on Windows.


Kevin@KEVIN-AMD-PC MINGW64 ~/wifi-password (master)
$ wifi-password
ERROR: SSID was not found

Looks like you were able to install wifi-password, that's great!
Well, I believe that the error must be occurring because you are using Git Bash. There is a chance that wifi-password thinks that you are using Linux and then is trying to execute the code for Linux systems.


Could you run the Python code below through Git Bash and let me know what the output is?

import sys
sys.platform

from wifi-password.

KevinIsMyName avatar KevinIsMyName commented on May 14, 2024

I don't think it's a pip dir issue as I've installed other packages just fine (and not just commonly used libraries).

The python3 is actually a Git Bash alias to winpty.exe which I never use, so you can pretty much ignore that. I meant to copy-paste it but with python instead of python3

Kevin@KEVIN-AMD-PC MINGW64 ~
$ python
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'win32'

Yep! I was thinking of mentioning that it's probably because it's Git Bash. I wanted to compare it to a WSL2 Ubuntu-20.04 LTS, but that was another rabbithole (that I don't feel like digging because busybusybusy).

I think it might just be best to install it with Git and the setuptools if you're using a non-Linux architecture, like GitHub

from wifi-password.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.