This question already has answers here:
PyInstaller, spec file, ImportError: No module named 'blah'
(3 answers)
Pyinstaller Unable to access Data Folder
(1 answer)
Python - pygame error when executing exe file
(3 answers)
Closed 2 years ago.
I have recently been making a game on pydroid 3 with pygame and I am trying to turn it into a game you can download and play as an apk or exe file
A YouTube video told me that I had to use pyinstaller to turn it into an a game that people can download so I tried pip installing it but it said
Failed to build wheel for pyinstaller
After that I tried pip3 installing pyinstaller but it said the same thing after that I tried using the pip function that comes with the app but it said
Looking in indexes:http://repo.local
Error:PyInstaller does not support Android yet
And the only device I have to program is an android tablet and all the other Ide's i've tried don't support pygame so I don't really know what to do
Related
This question already has answers here:
Cannot install pygame in Pycharm
(1 answer)
pycharm doesn't recognize pygame package
(2 answers)
Closed 2 years ago.
I am trying to install Pygame using Pycharm, but keep getting an error when downloading. It suggests running the command in the terminal, but when I do that it says:
Requirement already satisfied: pygame in /Library/Python/2.7/site-packages (1.9.6)
I don't understand what I am supposed to do at this point so some help would be really nice.
This question already has an answer here:
Why python executable opens new window instance when function by multiprocessing module is called on windows
(1 answer)
Closed 3 years ago.
I'm new to this. Sorry for the mess.
I've been trying to install PyQtWebEngin, first On zorin os which is dualboot along with Windows10, it failed. Then I decided to install it on Linux Mint on VM inside Windows10. The error result is alway the same.
Here take a look,
poo#poo:~/Downloads$ pip3 install PyQtWebEngine
Collecting PyQtWebEngine
Using cached https://files.pythonhosted.org/packages/71/be/cd5243a456aae37788eebd8333d2326fd830de7ce1f1ac6618e966a66862/PyQtWebEngine-5.14.0-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Collecting PyQt5-sip<13,>=12.7 (from PyQtWebEngine)
Using cached https://files.pythonhosted.org/packages/69/d2/92d85b0865fe68755488a30eec1c2b1b14da6c96c74441dc1c88e0659397/PyQt5_sip-12.7.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting PyQt5>=5.14 (from PyQtWebEngine)
Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-3tqr21z4/PyQt5/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3tqr21z4/PyQt5/
Can you guys help me out.
Thanks in advance.
Your pip seems to be trying to use a source distribution of PyQt5 for installation, but it seems that setup.py is missing from the .tar.gz on pypi, which is odd.
According to the docs installing from source is not recommended anyway
However using pip to install from the source package is not recommended
I do not know why your pip chose to download the .tar.gz in the first place. Looking at the other whl files from you log with cp36-cp36m-manylinux1_x86_64.whl, there is a PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl on pypi that should be compatible with your system and should be the first choice of pip for downloading.
You can try to do it manually:
wget https://files.pythonhosted.org/packages/ea/9d/d609aab4111d9d74857fb73067f7de4ca38fc1f7fff87ceba092681754cf/PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl
pip install PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl
And then try your installation again
This question already has answers here:
Python - pygame error when executing exe file
(3 answers)
PyInstaller, spec file, ImportError: No module named 'blah'
(3 answers)
Pyinstaller Unable to access Data Folder
(1 answer)
Closed 2 years ago.
I have the following structure in my project:
ProjectFolder/
|- Back/
|-Estadísticas.py
|-FicheroBaraja.py
|- Front/
|-MenuInicial.py
|-MesaJuego.py
|-Pantalla.py
|-PantallaResultados.py
|-PantallaError.py
|-Cartas/
|-Baraja.py
|-CartaBaraja.py
|-Util.py
|app.py
app.py is the module we have to execute to start the program
This project uses pygame, pandas and matplotlib
I have been told by pyinstaller tutorials that in my case I should execute the following command from project folder:
pyinstaller --onefile --paths=./Back --paths=./Cartas --paths=./Front app.py
It generated my executable file in the folder dist.
If I execute it in that folder, it will return an exception because it can't find the module MenuInicial.py (which is called in app.py) so that is logic.
However, when I move the file app.exe generated to the same folder as app.py (to project folder) and I execute it several weird things happen.
First, it takes ages to print the welcome message for pygame
Second, it opens my main window but in black completely
Third, after several seconds the window is closed without any interaction and it does not return any exception, error or anything.
I am doing all of this in Windows 10x64 bits in Spanish.
I tried to do:
sxstrace trace -logfile:trace.log
And got this error:
Error de StartTrace. Mensaje de error: Access Denied
I should be able to run my application according to the documentation I have read.
To sumarize, these are the components I am using:
python 3.7.1
pyinstaller 3.5.dev0+d74052489
Windows 10 (well, this is where I am executing this)
matplotlib 3.0.3
pandas 0.24.2
The weird thing is, pyinstaller finds pandas, pygame and myplotlib and packages them well apparently
This question already has answers here:
Adding a module (Specifically pymorph) to Spyder (Python IDE)
(13 answers)
Closed 6 years ago.
I have installed numdifftools and it works in Python shell. But in Spyder, I get this error which don't know how to solve!
ImportError: No module named 'numdifftools'
on the IPython console within spyder allows you to use pip. So, in the example, you could do:
[1] !pip install numdifftools
All possible answers :
1.For any libraries that you want to add that aren't included in the default search path of spyder (whatever that is) you need to go into Tools and add a path to EACH library via the PYTHONPATH manager. You'll then need to update the module names list from the same menu and restart spyder before the changes take effect.
2.Find the location of a module in Terminal:
$ python #open python
>>> import numdifftools #import a module
numdifftools #get the location of the package
Copy-paste the module folder to the 'Spyder.app/Contents/Resources/lib/python2.7'
Relaunch Spyder.app
3.Try install from ipython(within spyder) : !pip install numdifftools
Refer : similar question
This question already has answers here:
suds install error: no module named client
(8 answers)
Closed 7 years ago.
Let me just get this out of the way - I'm new to just about everything about modules. I can just about guarantee I'm going to say or ask something stupid.
To the point - I need to do some autotask API magic, and to do so I need to make use of suds-jurko (since I'm running Python 3.4 and suds is outdated).
I've installed it through py -m pip install suds_jurko which gave me an .egg, which I used easy_install on. Still, no sign of suds_jurko to be found.
Why can't I import suds-jurko, and why does it not show up in the help>>modules of IDLE?
Look here. The import statement for suds-jurko is still import suds.