-bash: pyinstaller: command not found Sorunu


#1

Arkadaşlar Projemi exe ceviremiyorum :frowning: Projelerim/projetess/ dosyasına kadar gidiyorum projetess.py görmüyor
nasıl yapmalıyım
işletim Sistemim = MacOS
proje klasörü = projetess
python dosyası = projetess.py
Dosya Yolu = /Users/mac/Desktop/Projelerim/projetess/projetess.py
exe dönüştürülmek istenen dosya = projetess.py
önce PyInstaller yükendi mi = evet
alınan hata = -bash: pyinstaller: command not found

Aşağıdaki terminal kodunda görüldüğü gibi PyInstaller yükleyip bu klasöre kadar gidiyorum /Users/mac/Desktop/Projelerim/projetess/

       
        Mac-MacBook-Pro:~ mac$ pip install pyinstaller

        DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

        Requirement already satisfied: pyinstaller in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (3.5.dev0+baf94fc1b)

        Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pyinstaller) (39.0.1)

        Requirement already satisfied: pefile>=2017.8.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pyinstaller) (2018.8.8)

        Requirement already satisfied: macholib>=1.8 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pyinstaller) (1.11)

        Requirement already satisfied: altgraph in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pyinstaller) (0.16.1)

        Requirement already satisfied: dis3 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pyinstaller) (0.1.3)

        Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pefile>=2017.8.1->pyinstaller) (0.17.1)

        Mac-MacBook-Pro:~ mac$ cd /Users/mac/Desktop/Projelerim/projetess/

        Mac-MacBook-Pro:projetess mac$ pyinstaller projetess.py

        -bash: pyinstaller: command not found

        Mac-MacBook-Pro:projetess mac$

#2

python sürümünüzü upgrade etmenizi söylüyor pip3 install yazıp kurmayı deneyebilirmisiniz ?


#3

Böyle bir Hata alıyorum

Could not find a version that satisfies the requirement python (from versions: )

Last login: Sun Feb 3 04:09:07 on ttys001

Mac-MacBook-Pro:~ mac$ pip install python

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.

Requirement already satisfied: python in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload (2.7.15)

Mac-MacBook-Pro:~ mac$ pip3 install python

 Collecting python

Could not find a version that satisfies the requirement python (from versions: )

No matching distribution found for python 

You are using pip version 18.1, however version 19.0.1 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

Mac-MacBook-Pro:~ mac$


#4
pip install --upgrade pip

Veya;

python3 -m pip install --upgrade pip

#5

You are using pip version 18.1, however version 19.0.1 is available.

diyor ki siz 18.1 sürümünü kullanıyorsunuz ama version 19.0.1 müsait bunun için pip versiyonunuzu yükseltmeniz gerekiyor bi upgrade atalım

pip install --upgrade pip
yazarmısınız


#6

Bu şekilde sonuc aldım

Last login: Sun Feb 3 14:34:01 on ttys001

Mac-MacBook-Pro:~ mac$ pip install --upgrade pip

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.

Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (19.0.1)

Mac-MacBook-Pro:~ mac$ python3 -m pip install --upgrade pip

Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (19.0.1)

Mac-MacBook-Pro:~ mac$


#8

Rica etsem şu kodu girebilir misiniz?

pip3 install pyinstaller

#9

Siz pyinstaller’i indirirken python2’ye indirmişsiniz. pip3 ile python3’e indirdikten sonra;

python3 -m pyinstaller projetess.py

#10
Last login: Sun Feb 3 14:43:36 on ttys001

Mac-MacBook-Pro:~ mac$ pip3 install pyinstaller

Requirement already satisfied: pyinstaller in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (3.4)

Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (40.6.2)

Requirement already satisfied: pefile>=2017.8.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (2018.8.8)

Requirement already satisfied: macholib>=1.8 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (1.11)

Requirement already satisfied: altgraph in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (0.16.1)

Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pefile>=2017.8.1->pyinstaller) (0.17.1)

Mac-MacBook-Pro:~ mac$

bundan sonra klasöre gidiyorum

Mac-MacBook-Pro:~ mac$ cd /Users/mac/Desktop/Projelerim/projetess/

Mac-MacBook-Pro:projetess mac$

şimdi python dosyamı pyinstaller deniyorum

Mac-MacBook-Pro:projetess mac$ pyinstaller --onefile projetess.py

-bash: pyinstaller: command not found

Mac-MacBook-Pro:projetess mac$

şöyle denedim

Mac-MacBook-Pro:projetess mac$ pyinstaller --onefile /projetess.py

-bash: pyinstaller: command not found

Mac-MacBook-Pro:projetess mac$

klasörlere giderken kullandığım cd komutunu mu kullanmam gerek ve nasıl ?


#11

Dediğim gibi, aşağıdaki kodla deneyebilir misiniz derleme işlemini?

python3 -m pyinstaller projetess.py

#12

mac OS’ta çalıştırılabilir dosya ne bilmiyorum, ama aşağıdaki başlıkta @hasser pytoapp’dan bahsetmiş:


#13

rica etsem şöyle yaparmısınız

pip uninstall pyinstaller
kaldırsın ve sonra tekrar bunu girin
pip3 install pyinstaller 
bakalım her şey hazırdamı

#14

Yanlış göstermişsiniz, unistall değil uninstall olacak:

pip3 uninstall pyinstaller

pip kullanırsa modül python2’ye, pip3 kullanırsa python3’e kurulur modül.


#15

bende zaten python2 dekini kaldırmaya çalıştım anladığınız kadarıyla :slight_smile: python3 dekini kaldırdım diye bir şey demedim yazmada hata olabilir o konuda bir şey demiyorum ve de python3 ile install yazdığımızda tüm hepsinin başarıyla kurulduğunu görebiliyoruz neden kaldıralım bir daha ?

```
Requirement already satisfied: pyinstaller in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (3.4)

Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (40.6.2)

Requirement already satisfied: pefile>=2017.8.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (2018.8.8)

Requirement already satisfied: macholib>=1.8 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (1.11)

Requirement already satisfied: altgraph in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (0.16.1)

Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pefile>=2017.8.1->pyinstaller) (0.17.1)
```

herhalde okumadınız veya çıktıyı anlamadınız bilmiyorum


#16

Bunu yapmanıza gerek yok, python3 -m pyinstaller python3’ün pyinstaller modülünü, python -m pyinstaller ise python2’nin pyinstaller modülünü çağırır. Belli ki pyinstaller direkt yola eklenmemiş, çünkü python’un farklı sürümleri var.


#17

Hatalı kurulabileceği için tekrar kurmak isteyebiliriz.


#18

Last login: Sun Feb 3 15:02:20 on ttys001
Mac-MacBook-Pro:~ mac$ pip3 uninstall pyinstaller
Uninstalling PyInstaller-3.4:
Would remove:
/Library/Frameworks/Python.framework/Versions/3.7/bin/pyi-archive_viewer
/Library/Frameworks/Python.framework/Versions/3.7/bin/pyi-bindepend
/Library/Frameworks/Python.framework/Versions/3.7/bin/pyi-grab_version
/Library/Frameworks/Python.framework/Versions/3.7/bin/pyi-makespec
/Library/Frameworks/Python.framework/Versions/3.7/bin/pyi-set_version
/Library/Frameworks/Python.framework/Versions/3.7/bin/pyinstaller
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller-3.4.dist-info/*
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/*
Proceed (y/n)? y
Successfully uninstalled PyInstaller-3.4
Mac-MacBook-Pro:~ mac$

kaldırdım


#19

“Zaten pyinstaller kurulu” diyor.


#20

Şimdi tekrar kuralım:

pip3 install pyinstaller

Olmazsa;

python3 -m pip3 install pyinstaller

#22
Mac-MacBook-Pro:~ mac$ pip3 install pyinstaller

Collecting pyinstaller

Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (40.6.2)

Requirement already satisfied: pefile>=2017.8.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (2018.8.8)

Requirement already satisfied: macholib>=1.8 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (1.11)

Requirement already satisfied: altgraph in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyinstaller) (0.16.1)

Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pefile>=2017.8.1->pyinstaller) (0.17.1)

Installing collected packages: pyinstaller

The scripts pyi-archive_viewer, pyi-bindepend, pyi-grab_version, pyi-makespec, pyi-set_version and pyinstaller are installed in '/Library/Frameworks/Python.framework/Versions/3.7/bin' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed pyinstaller-3.4

Mac-MacBook-Pro:~ mac$

kurdum