Python !pip compile to exe [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I hi guys, i wrote a script in Jupyter Notebook and exported it as py, but when compiling with auto-py-to-exe i always get an error.
!pip install selenium can't compiled.
what else can I use instead of pip
(sorry for my bad English)

! is special jupyter "magic". It is not valid python and therefore won't work in a python script. The following will, though:
import os
os.system("pip install selenium")

Related

I am getting this error while trying to install chatterbot [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 days ago.
Improve this question
This is the error I am getting:
Earlier I was trying to download chatterbot and I had Python version 3.11 so I uninstalled it and downloaded python version 8 then I got path error and I somehow fixed it.
Earlier I was having trouble with sub process error so I tried to fixed it and now i am getting this type of error and I don't know what to do.
What can I try next?

Using shodan from the terminal [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I've been looking forward to downloading the command-line interface for "Shodan".
On the website they say that i basically have to type "pip install -U --user shodan" in my cmd, so i did multiple times and it now says that the requirement are already satisfied, which feels normal since i did it multiple times trying to fix said problem.
Now the problem is, next step is to basically type "shodan" in the cmd, problem is it says 'shodan' isn't recognized.
What am i supposed to do ! :(
You need to add the path of the scripts to your system PATH variable:
It is something like this:
C:\Python38\Scripts
When you run pip install, it installs an exe file under the Scripts folder of your python installation. You should add this path to the PATH variable as described in the link. This makes the exe available in the terminal.
See this guide for more information:
https://datatofish.com/add-python-to-windows-path/

I have problem to make a downgrade of Python 3.6 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I would like to make the downgrade of python 3.6.
When I launch python -v from the terminal
I have this error
no such file or directory: /usr/local/bin/python3.7
I can't understand why
I fix it. The problem was in the path, for fix it I write this command inside the termina `
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
alias python='python3'
alias 3='python3'

Python Debugger converts backspace to `^H` [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm working in a Linux server environment and use the Python Debugger frequently. I haven't had this issue before on a previous server I was using, but I noticed after I switched that pressing Backspace outputs ^H when I'm in the interactive shell. It works fine in the terminal though.
Does anyone know what the issue might be? Thanks.
Edit
None of the navigation keys seem to work either.
I found an answer. The problem wasn't my Python or anything, but an external library called "Weights & Biases" that I'm using. It turns out that W&B doesn't support readline, and simply running things like pip install readline or pip install gnureadline didn't help.
I had to use the rlwrap tool to wrap my program.
Now if I run rlwrap python blahblah.py --argument1 ... everything works.

Why is my python path pointing to a non existent file? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
So I deleted every instance of python, versions, off my computer then re-installed it and when I type
python -V in cmd, it says No Python at C:\(insert file path that does not exist). I went to my environment variables and added a new location in Path and it still shows the No python message. How do I fix this so I can use my new
C:\(new destination) for python?
The issue that happened was that pycharms would not change the outdated path even tho I deleted / re-installed it countless times. I un-checked the add to path option and it worked

Categories