This question already has answers here:
Set up Python 3 build system with Sublime Text 3
(10 answers)
Closed 11 months ago.
Need help installing python on the sublime text on a windows laptop. I am new to this and spent hours online looking but nothing worked.
I tried
tools>build system>new build system and entered
"cmd":["python3","-u","$file"],
but it does not work, it shows this message
C:\Users\john\AppData\Local\Programs\Python\Python310\python.exe: can't find '__main__' module in ''
[Finished in 12.3s]
Try to go to Tools > Build System and select Python. That should work.
You can just do CTRL + B to run the file.
Related
This question already has answers here:
difference between '%pip' and '!pip' in python jupyter notebook and colab
(1 answer)
What is %pylab?
(5 answers)
% syntax in Python [duplicate]
(1 answer)
%precision 2 on Python
(2 answers)
Closed 4 months ago.
I see this is a notebook file:
%pip install wordcloud
I would usually do: pip install wordcloud without the %.
I have tried looking this up, but cannot seem to find it.
What does the % actually do ? is it notebook specific ?
EDIT:
there are 4 proposed solutions (that were similar).
it appears as though the % is a replacement in the notebook for cmd, but this does not explain its usage, in particular this:
so the % effectively replaces the cmd ? but i dont get why it is used
given that the pip command is only needed to be run once ? is it proposed that this
pip is run every time (to install the latest version)...
So: why use %pip in place of pip install?, what is the benefit ?
This is a so called "magic" command and specific to the ipython kernel for jupyter notebooks.
You can read more about it here: https://ipython.readthedocs.io/en/stable/interactive/magics.html
This question already has answers here:
Getting error when using pynput with pyinstaller
(2 answers)
Closed 8 months ago.
Hey ive tried coding a script in which i use pynput to detect keybinds being pressed. It works fine itself but sadly once i try to use pyinstaller to make it into an exe file the following error pops up once i try to run it.
I have tried looking up the problem but have not found any working solutions.
I have also read through pyinstaller's documentation but I didn't find anything.
#use this pip install pynput==1.6.8
This question already has answers here:
"ImportError: No module named site" on Windows
(17 answers)
Closed 2 years ago.
Currently when I run a Python code (in Sublime Text 3) or try to run python in the cmd, I always get this:
C:\Users\Leopo\Flask App>python
ImportError: No module named site
In my user variables under the environment variables in PATH it is written: C:\Users\Leopo\AppData\Local\Programs\Python\Python38-32\Scripts\ and C:\Users\Leopo\AppData\Local\Programs\Python\Python38-32\
And in the system variables under PATH it is written:
%PYTHON_HOME%
with PYTHON_HOME : C:\Users\Leopo\App Data\Local\Programms\Python38
I already repaired and reinstalled Python 3.8.3.
Is there maybe a problem regarding the environment settings?
Thanks for the help!
This problem has occurred to almost everyone
In my case, my system needed a restart to fix the problem
This question already has answers here:
pyrouge: 'pyrouge_set_rouge_path' is not recognized as an internal or external command
(2 answers)
Closed 5 years ago.
I have Windows 7 and use Python 3.4
I'm trying to work with ROUGE installing pyrouge from pypi.
I followed the installation steps on the site https://pypi.python.org/pypi/pyrouge/0.1.2
But the command:
pyrouge_set_rouge_path /absolute/path/to/ROUGE-1.5.5/directory
doesn't execute.
I try in the command prompt:
pyrouge_set_rouge_path C:\rouge
and the error:
'pyrouge_set_rouge_path' is not recognized as an internal or external command, operable program or batch file.
I would greatly appreciate if you can help me with something.
Thanks
I asked the same question for Python 2.7 in stackoverflow, and received the following answer:
set pyrouge_set_rouge_path=C:\rouge
This worked for me.
This question already has answers here:
GPG Error Code 2
(4 answers)
Closed 8 years ago.
gpg.exe return a error code 2 for a particular machine. The code is working fine in other machines. Is this gpg.exe is machine dependent or do we need any separate settings for this in the machine?
my command is like this
gpg.exe --batch --output "I:\dataload\W2\QA2\PPP\S451.pgp" --recipient "***.*****#****.**.com" --encrypt "I:\dataload\W2\QA2\PPP\S451"
Look at dependencies and make sure python and all relevant packages are installed on that machine. Your machine can't find a specified file so check to see that all dependencies are met. Maybe post a little more about the error.