I downloaded Nuitka from http://nuitka.net/pages/download.html ( http://nuitka.net/releases/Nuitka-5.1.281.win-amd64.py36.msi ) and installed it. The installation ran all right without any errors. Python 3.6 is installed on the computer. However, I now cannot find Nuitka's folder and it is also not there on start menu. It is also not found as a command when typed at command prompt.
Where is the problem and how can it be solved? Thanks for your help.
If the Windows installer isn't working for you, you can always try pip install nuitka, which I've run successfully using Anaconda on Windows 10.
Related
I am on Linux Mint. When i try to import robot for robotframework in my python application it doesnt get recognized as a installed library. This while i checked the executable with the "which" command.
which python
Gives the output: /usr/bin/python
I put that path '/usr/bin/python' in the interpreter path in vscode. But it doesn't get
the installed libraries.
when i use the terminal outside of vscode and do
pip list
I get a big list with all of my installed libraries. But when i do the same in VScode i just get a short list with nothing of the installed libraries.
I tried to deinstall python, vscode and reinstall both but that doesn't work. The python path to the system python.exe is in the PATH variables. I dont know what i can try further.
It looks like that they both point to the same pip instance but it doesn't recognize the same packages. Like it cant find the site-packages folder
Can anyone please help?
I've found the problem.
In Linux Mint when you install visual studio code via the application manager built into the OS. It installs the flatpack version of Visual studio code. Which creates what looks like its own environment that cannot get the pip packages from the main system.
For me what solved it was to download the .deb version from the official vscode website(https://code.visualstudio.com/Download) and install that one using the:
sudo apt install /Downloads/{name of downloaded.deb file}
When I used this version of Visual studio code it all worked for me with no problem.
Python beginner here. I would like to use Spyder as my Python IDE. Alas the standalone version does not include pip and I want to work with "Vanilla Python" rather than Anaconda. So I installed Spyder via
pip install spyder, which works fine. However, when running spyder3 in the command window, nothing happens. I get no error, but Spyder does not launch either. While the Spyder website says custom installation may be tricky, it does not provide a guide on how to get it done. Does someone know how? OS is Windows 10.
you need to follow this commands:
python -m venv spyder-env
spyder-env/Scripts/activate.bat
pip install spyder
more info
Update: Tried again with Python 3.10.4. "spyder" now exists in the Scripts folder and does launch when typing spyder in cmd. Works for me now.
I've coded a game in Pygame using Pycharm, and I want to make it into a downloadable desktop application so that other people can download and use it even if they do not have python or the necessary files. The problem is I don't know how to. I've heard of py2exe and py2app before. I tried py2exe but then realized that .exe was for windows, and I was using a Mac. I read the py2app documentation, but it was very confusing and hard to understand, and none of the things they said worked. They said to use the pip command to install py2app inside the terminal, but I tried it and it said that it did not recognize the pip command. Can someone please help? Thanks!
Sorry if this question is long. I am trying to tell as much information as possible.
You can use pyinstaller if you package the application in Mac OS it will run on Mac.
Click here for instruction on how to install the package and use it.
Which installation of Python do you use? I had bad experience with Homebrew when it came to packaging, then I've removed it and switched to Python3.9 downloaded directly from python.org and everything works well now.
Depending on your Python installation, it is possible that you don't have pip installed on your computer. Via terminal, you can check it using
python -m pip --version
and you should get a response of this type:
pip X.Y.Z from .../site-packages/pip (python X.Y)
If you don't have pip, you can either re-install Python as mentioned above, or you can just install pip using these instructions.
As soon as you have pip installed, you can install py2app using
pip install py2app
I watched the instructional video here to install cx_Freeze.
https://www.youtube.com/watch?v=J81JFwqsS5o
It seems like the guy runs an executable to do the install. I downloaded the whl file from here.
https://pypi.python.org/pypi/cx_Freeze/5.1.1
I run it this way: pip install some-package.whl
I am using the Anaconda command prompt and Spyder 3.2.4. How can I actually install and/or run cx_Freeze? Thanks.
pip install should work fine. The actual way of testing the library would be to import and see the version.
If you wanted to create an executable using cx_freeze, try the setup script in the following link:
https://cx-freeze.readthedocs.io/en/latest/distutils.html
I am trying to use pip to install the python docx plugin. However, when I use the line "pip install python-docx" on the windows command prompt, it just stays there, not doing anything. It doesn't crash, nor does it throw an error.
I have modified the PATH so it includes pip, so I don't think that's the problem.
In the end, what happened is that my antivirus was somehow interfering with the installing process. I turned it off for a few minutes, ran the windows command prompt as administrator, and it worked perfectly.