Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIP error
#11
I see now that you run pip on file with name with .crdownload at the end. Has the download been interrupted for some reason? The file name have to end with .whl
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#12
Hi

Yes did both of these and see the same

C:\Users\Chris Ward>pip -V
pip 9.0.1 from c:\program files\python35\lib\site-packages (python 3.5)

C:\Users\Chris Ward>pip install --upgrade pip
Requirement already up-to-date: pip in c:\program files\python35\lib\site-packages
Reply
#13
Dos pip work for other modules?
pip install requests

I did a test in a other post,with virtual environment(build into 35).
Here is the run.
# Make virtual enviroment
C:\Python35                                                                                                    
λ python -m venv pyinstaller_test                                                                              
                                                                                                                
C:\Python35                                                                                                    
λ cd pyinstaller_test                                                                                          
        
# Activate virtual environment   
C:\Python35\pyinstaller_test                                                                                   
λ C:\Python35\pyinstaller_test\Scripts\activate.bat                                                            
(pyinstaller_test) C:\Python35\pyinstaller_test                                                      
 
# Check that pip from virtual environment is used   
(pyinstaller_test) C:\Python35\pyinstaller_test                                                                
λ pip -V                                                                                                       
pip 8.1.1 from c:\python35\pyinstaller_test\lib\site-packages (python 3.5)                                     
 
# Install pyinstaller                                                                                                               
(pyinstaller_test) C:\Python35\pyinstaller_test                                                                
λ pip install pyinstaller                                                                                      
Collecting pyinstaller                                                                                         
  Using cached PyInstaller-3.2.1.tar.bz2                                                                       
Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\python35\pyinstaller_test\lib\site-p
ackages (from pyinstaller)                                                                                     
Collecting future (from pyinstaller)                                                                           
  Using cached future-0.16.0.tar.gz                                                                            
Collecting pypiwin32 (from pyinstaller)                                                                        
  Downloading pypiwin32-219-cp35-none-win32.whl (7.9MB)                                                        
    100% |################################| 7.9MB 156kB/s                                                      
Installing collected packages: future, pypiwin32, pyinstaller                                                  
  Running setup.py install for future ... done                                                                 
  Running setup.py install for pyinstaller ... done                                                            
Successfully installed future-0.16.0 pyinstaller-3.2.1 pypiwin32-219                                           
                            
# Make exe                                                                                                               
(pyinstaller_test) C:\Python35\pyinstaller_test                                                                
λ pyinstaller hello.py                                                                                         
A lot of install stuff...........                                          
8040 INFO: Building COLLECT out00-COLLECT.toc completed successfully.                                          
                                                                                                                
(pyinstaller_test) C:\Python35\pyinstaller_test                                                                
λ cd dist                                                                             
                                                                                                 
(pyinstaller_test) C:\Python35\pyinstaller_test\dist                                                           
λ cd hello                                                                                                     
 
# Test exe                                                                                                               
(pyinstaller_test) C:\Python35\pyinstaller_test\dist\hello                                                     
λ hello.exe                                                                                                    
Hello World
Reply
#14
Hi - I have some progress and think PYINSTALLER is OK - however still cant form a .EXE - see below

I really appreciate the help - thank you

C:\SFF\Code>pip install pyinstaller
Requirement already satisfied: pyinstaller in c:\program files\python35\lib\site-packages
Requirement already satisfied: setuptools in c:\program files\python35\lib\site-packages (from pyinstaller)
Requirement already satisfied: future in c:\program files\python35\lib\site-packages (from pyinstaller)
Requirement already satisfied: pypiwin32 in c:\program files\python35\lib\site-packages (from pyinstaller)

C:\SFF\Code>pyinstaller -F SFF_Analyzer.py
Traceback (most recent call last):
File "C:\Program Files\Python35\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
File "c:\program files\python35\lib\site-packages\pkg_resources\__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\program files\python35\lib\site-packages\pkg_resources\__init__.py", line 2631, in load_entry_point
return ep.load()
File "c:\program files\python35\lib\site-packages\pkg_resources\__init__.py", line 2291, in load
return self.resolve()
File "c:\program files\python35\lib\site-packages\pkg_resources\__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "c:\program files\python35\lib\site-packages\PyInstaller\__main__.py", line 21, in <module>
import PyInstaller.building.build_main
File "c:\program files\python35\lib\site-packages\PyInstaller\building\build_main.py", line 32, in <module>
from ..depend import bindepend
File "c:\program files\python35\lib\site-packages\PyInstaller\depend\bindepend.py", line 38, in <module>
from ..utils.win32.winmanifest import RT_MANIFEST
File "c:\program files\python35\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 97, in <module>
from PyInstaller.utils.win32 import winresource
File "c:\program files\python35\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 20, in <module>
import pywintypes
File "c:\program files\python35\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>
__import_pywin32_system_module__("pywintypes", globals())
File "c:\program files\python35\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__
import _win32sysloader
ImportError: DLL load failed: The specified module could not be found.

C:\SFF\Code>
Reply
#15
Install pywin32 module
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#16
Do have installed pywin32?
Same error reportet here
Do not use -F option as a start(one-file bundled) is always more unstable.
Reply
#17
Thank you all - it works ------------------------- Thank you from a NEWBIE who would buy you a pint if he could :)
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020