Packaging Your Python App Into Standalone Executables | PyInstaller | Expense Tracker

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2018
  • Easily Package your python app into executables which you can distribute to anyone, without the need of them installing Python or other dependencies.
    PyInstaller is OS independent, and is really easy to use.
    Expense Tracker API: • Coding an Expense Trac...
    Command Line Interfaces: • Designing Awesome Comm...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 114

  • @Xaminn
    @Xaminn 4 ปีที่แล้ว +8

    This was an excellent tutorial! I now know how to package my projects for simple deployment. 5/5 Cheers!

  • @aditiagarwal8646
    @aditiagarwal8646 4 ปีที่แล้ว

    The video is very clear, simple and crisp. Thank You!

  • @prateekpanwar646
    @prateekpanwar646 4 ปีที่แล้ว +7

    I had been looking for tutorial of adding other modules and files with py installer. Thanks you nicely explained and satistied need. Looking forward for your future videos.

    • @rahelly84
      @rahelly84 4 ปีที่แล้ว

      hi, i am still struggling, can you help? i have a folder contains Python scripts and main does not find it

  • @iamhritikpawar
    @iamhritikpawar 4 ปีที่แล้ว +1

    Thanks, dude it was awesome the videos of others didn't work but this worked for me.

  • @VINAYVS1991
    @VINAYVS1991 3 ปีที่แล้ว

    Good job Sourav and thank you for this!

  • @MateusDvk
    @MateusDvk ปีที่แล้ว

    Thanks for the tutorial Sourav!! greetings from Brazil!

  • @enriquenieto9135
    @enriquenieto9135 5 ปีที่แล้ว +1

    You are awesome Aourav!!!

  • @aoihana1042
    @aoihana1042 2 ปีที่แล้ว

    Thank you for your clear and concise explanation!

  • @aishwaryamurugappan5138
    @aishwaryamurugappan5138 3 ปีที่แล้ว +1

    That was keeping it simple and clear at the same time😍🤝🔥

  • @mjones410
    @mjones410 2 ปีที่แล้ว

    thank you, still relevant and helpful in 2022 :)

  • @sameerk12982
    @sameerk12982 4 ปีที่แล้ว

    Thanks a lot Sourav....this is very helpful tutorial......working for me....exactly what I was looking for....appreciated.....Subscribed....looking forward for more....please make more videos on python...you explain very well.

  • @sonepratap
    @sonepratap 3 ปีที่แล้ว

    Great work Sourav..

  • @ziiby4177
    @ziiby4177 ปีที่แล้ว

    The only tutorial that works.

  • @Erbmon
    @Erbmon 4 ปีที่แล้ว

    Thanks mate, I wanted to share a quick tool I made and this made it a brease

  • @mohammedmuqtadirmujtaba9514
    @mohammedmuqtadirmujtaba9514 5 ปีที่แล้ว

    Awesome video !!!.. Thanks alot :)

  • @brubrudsi
    @brubrudsi 3 ปีที่แล้ว

    Extremely good tutorial

  • @krishj8011
    @krishj8011 4 ปีที่แล้ว

    I recently joined your AI/ML course and its awesome...

  • @ashishthapa529
    @ashishthapa529 5 ปีที่แล้ว +2

    awesome :)

  • @VGV0
    @VGV0 2 ปีที่แล้ว

    Very precise thank you.

  • @israeletu
    @israeletu 2 ปีที่แล้ว

    Thanks for the video.

  • @kingslyroche
    @kingslyroche 5 ปีที่แล้ว

    Great.👍

  • @sanketgupta4139
    @sanketgupta4139 5 ปีที่แล้ว

    I have a question. You are using spent.db which already contains data. When you package it inside. it should reflect the data. Also, the code you wrote in init() will only work once. Since you are using the create table if not exists but already the db exist. So if I want to clear the table and start from beginning it is not possible to do that. Am I correct?

  • @kenmsmith
    @kenmsmith 4 ปีที่แล้ว +1

    How do we create an exe in Python 3.8 or using Pycharm? Apparently this older pyinstaller method doesn't work with the latest Python

  • @AmanSingh-dv8br
    @AmanSingh-dv8br 2 ปีที่แล้ว

    Bro kya database project me use kiya ho to use exc file me change karne ke liye koi difference code nhi likhna hota na

  • @zerohour2751
    @zerohour2751 4 ปีที่แล้ว

    Hi Sourav
    can we use the command add-data for xlsx files,
    and if want to add to files what do we need to type.
    Thanks in advance

  • @mrshubh101
    @mrshubh101 3 ปีที่แล้ว

    I'm trying to package my Python script into an executable, but the final executable generated is way too large in size. My script just makes use of pandas. Is there anyway I can try to make the executable compact? I just want it to be small enough, so that it runs with the minimum number of packages imported in it.

  • @danishhamdule4112
    @danishhamdule4112 2 ปีที่แล้ว

    Thanks man. I have one question if i have Tkinter application with two separate python file one runs the machine learning iniferecing and other runs the UI and Data Query...i there any way to merge both into one

  • @gblightb
    @gblightb 5 ปีที่แล้ว +1

    I have a simple html opened through a python script using os.startfile('index.html')
    I ran pyinstaller to build the exe file but why am I getting *Failed to execute script* error message???

  • @alifrazkhan124
    @alifrazkhan124 9 หลายเดือนก่อน

    very good indeed

  • @doggydoggywho
    @doggydoggywho 2 ปีที่แล้ว

    Can you help me in solving the following problem:
    My python executable needs to read an xml file and then based upon it performs some operations and creates the output xml file. While I have an standalone executable file, however it only works inside the folder where my pycharm project is located. Also it reads the xml file only in that folder. I have tried putting the xml file and the exe in a new folder together, however it does not work. Also if there is some way to embed the xml file into the python script, that'd be great.

  • @Extorc
    @Extorc 3 ปีที่แล้ว +1

    ill be honest with you , u should create more often

  • @aparnapathivada6120
    @aparnapathivada6120 4 ปีที่แล้ว

    @Sourav Johar I have tried your code in windows but my files are not moving and I am copying those files in dist folder manually. Could you please help me on this.

  • @saitech2452
    @saitech2452 4 ปีที่แล้ว

    does this work with python script that has selenium will it take care of the path?

  • @jaiv
    @jaiv 5 ปีที่แล้ว

    Is it possible to use --add-data to add entire directories?

  • @alessandroceccarelli2320
    @alessandroceccarelli2320 4 ปีที่แล้ว

    How do you load the data in the main script? how do you specify name and path of the file?

  • @xcreame1991
    @xcreame1991 4 ปีที่แล้ว

    Hi bro, i have done this but how to render ipywidgets into the executable as well?

  • @jackzero5230
    @jackzero5230 3 ปีที่แล้ว

    whe i run exe file its giving file not found error, if I exclude --onefile flag it works fine...why?
    instead of .db file my code runs on an excel file, does that make a difference?

  • @colourfultoreador8467
    @colourfultoreador8467 3 ปีที่แล้ว

    Nice video

  • @israeletu
    @israeletu 2 ปีที่แล้ว

    Please is it possible to change the icon to any picture or figure of choice?

  • @Zhisaoka
    @Zhisaoka 3 ปีที่แล้ว

    Thanks so much

  • @bennguyen1313
    @bennguyen1313 4 ปีที่แล้ว

    How can you force pyinstaller to build using python 2.7? It seems by default doing a 'pip install pyinstaller' will install pyinstaller 3.6 which *SHOULD* support python 2.7 and 3.4? Yet when I try to build CanFestival3/objdictgen/objdictedit.py (wx gui) it complains about no parenthesis around prints!
    Interestingly, doing an import PyInstaller , PyInstaller.__version__ it says 3.5?!
    Update: for some reason pip was being installed in python27-x64\Scripts , so using that pip to install pyInstaller it now shows 3.6! Unfortunately, 'pyinstaller objdictedit.py' still results in an exe that doesn't run (errors like 'no module named core')

  • @deeprony7
    @deeprony7 4 ปีที่แล้ว

    Is there a way to generate a .exe from Linux/Mac with pyinstaller?

  • @adarshs2948
    @adarshs2948 4 ปีที่แล้ว

    so on which all os can I deploy the .exe file created on Linux??
    Help!!!!

  • @polymix2971
    @polymix2971 4 ปีที่แล้ว

    How much difference there is in terms of performance after compiling ?

  • @harrisonwebb6510
    @harrisonwebb6510 3 ปีที่แล้ว +1

    I get this error when trying to run it -bash: Pyinstaller: command not found

  • @shreyamaheshwari242
    @shreyamaheshwari242 5 ปีที่แล้ว

    👍👍

  • @autarroy
    @autarroy 2 ปีที่แล้ว

    Hi Sourav, i I have images jpg into my application, also an icon
    How i must write the code

  • @FRIENDSofCAP
    @FRIENDSofCAP 4 ปีที่แล้ว

    Hello, Nice tutorial... A couple of question however. (1). I am writing my code either on a Mac Pro desktop with Mac OSX Catalina or on one of several Raspberry Pi 3B+ and 4 Model B boards. I just used your tut to generate an executable and it workd from my Pi board since that is where I ran the pyinstaller --onefile programname.py from... If I do the same for apps developed on my Mac I assume it will generate an .app executable as used on Mac?
    (2). If I want do develop on my Mac as usual (except for when doing stuff or Pi boards) can I some how, on my Mac generate an EXE which I can then distribute to folks running WIndows? And will the EXE's run on both 32 and 64-bit WIndows / Mac Machines?
    Look forward to your reply.. Thanks, Tim...

    • @SouravJohar
      @SouravJohar  4 ปีที่แล้ว

      For your first guestion, no, phinstaller doesn't produce a .app on MacOs. It produces a binary file (like on Raspberry pi). You can checkout py2app for this.
      Second one is also a no. You can put generate exe on Mac using pyinstaller. You need to run pyinstaller from a Windows machine for that.

  • @jamjam1332
    @jamjam1332 4 ปีที่แล้ว

    I have a GUI implemented in the program which uses a .gif file. When I run the program an error is raised saying the .gif file cannot be found. I put the .gif file in the dist folder and it started working again. Is there any way to get the program to work without having the .gif file in the same directory? thanks :)

    • @noahclark6620
      @noahclark6620 4 ปีที่แล้ว

      Jamie Braham maybe get the source data of the gif file and store it in your code with Pillow image library, then parse and display it using the same library. You wouldn’t need an external file, it would be stored in your code

  • @liamfitzpatrick4352
    @liamfitzpatrick4352 4 ปีที่แล้ว +3

    Thanks for the quick tutorial! If I want to package more than one data file, how can this be done?

    • @jamesjoseph152
      @jamesjoseph152 3 ปีที่แล้ว

      I have this same problem too

    • @charlesjsescoto
      @charlesjsescoto 3 ปีที่แล้ว

      did u find solution on that?

    • @gboyegaokiki8736
      @gboyegaokiki8736 ปีที่แล้ว

      Sorry, have you gotten a solution to this problem?

  • @petermenzel94
    @petermenzel94 2 ปีที่แล้ว

    How do you avoid the program being flagged as a virus? Even my very simple scripts can't be emailed or opened on company computers. I can't find any resources online.

  • @timtim9o5
    @timtim9o5 5 ปีที่แล้ว +3

    can you do a tutorial freezing django with this ?

  • @rohitbharti8836
    @rohitbharti8836 4 ปีที่แล้ว

    bro i have photos for my main file how to import all those photos too

  • @MoneySmartWays
    @MoneySmartWays 4 ปีที่แล้ว

    is there a way i can run a python script everytime my system starts? Suppose i create an executable, the user clicks on the executable install it and this will trigger my script everytime my system boots up.

    • @prateekpanwar646
      @prateekpanwar646 4 ปีที่แล้ว

      Just copy executable file into Windows startup folder. Not sure for windows 10

  • @tarsus235
    @tarsus235 3 ปีที่แล้ว +1

    crashes when I try to do this with Pandas. pd.read_csv('my_csv.csv') causes a FileNotFoundError. Don't know why.

    • @jackzero5230
      @jackzero5230 3 ปีที่แล้ว

      try the same without '--onefile' flag

  • @Tommy_007
    @Tommy_007 2 ปีที่แล้ว

    Why was there no reference to the other .py file in the command?

  • @Kruzzles
    @Kruzzles 3 ปีที่แล้ว

    where is the exe file saved??

  • @Luis_0619
    @Luis_0619 4 ปีที่แล้ว

    Awesome! :) how can you add a image and or folder?..... please help :)

  • @shreyasjoshi9
    @shreyasjoshi9 3 ปีที่แล้ว

    pyinstaller: error: argument --add-data: invalid add_data_or_binary value: "'C:\\projectX\\MartinAuto\\util\\exp.py:.'"
    I get this error when i follow the --add-data command. It would be great if you could help me. I am kinda stuck

  • @Pradeep_prasad
    @Pradeep_prasad 3 ปีที่แล้ว

    This code create new dB but I want add my existing table ,pls help pls

  • @austinyasuda428
    @austinyasuda428 3 ปีที่แล้ว

    I can't use docopt in my driver after using pyinstaller. Can someone help?

  • @matiastika1329
    @matiastika1329 4 ปีที่แล้ว

    I tried this and I couldn't make it work on other computers..
    After I builted the '.exe' I passed everything in my project folder because I figured if it works in my PC, it should work,
    but in the other computer, I could run the application and execute all front-end code (html+css+js works correctly) yet the Python code is not running.
    Anyone else had this problem? Help!

  • @anujkumarnath1769
    @anujkumarnath1769 5 ปีที่แล้ว

    I tried this with my pyqt project and while running the generated executable file it says PyQt5 not found. It seems that library wasn't added during building the package.

    • @SouravJohar
      @SouravJohar  5 ปีที่แล้ว

      You can manually add it in the .spec file created by PyInstaller.

    • @deepakmoonat8704
      @deepakmoonat8704 5 ปีที่แล้ว

      @@SouravJohar where to add,in hiddenimports list?

  • @pujanrai159
    @pujanrai159 3 ปีที่แล้ว

    i have made a python script on mac
    if i give executable file to windows friend does this work?

    • @SouravJohar
      @SouravJohar  3 ปีที่แล้ว

      No. You would have to compile the executable on a windows machine to make a .exe file.

  • @deepakmoonat8704
    @deepakmoonat8704 5 ปีที่แล้ว

    I am getting error
    'pyinstaller' is not recognized as an internal or external command,
    operable program or batch file.
    i have also tried running it using python pyinstaller --onefile --add-data 'data:.' final_code.py
    but it also throws an error
    python: can't open file 'pyinstaller': [Errno 2] No such file or directory

    • @SouravJohar
      @SouravJohar  5 ปีที่แล้ว

      Run 'pip install pyinstaller'

    • @deepakmoonat8704
      @deepakmoonat8704 5 ปีที่แล้ว

      @@SouravJohar I got the error..I have not set the path for it
      Thanks

  • @andrewwang5765
    @andrewwang5765 4 ปีที่แล้ว +3

    When I use pyinstaller to package pyqt program,My computer is OK,but if i use this exe to the other computer,it will say : Faile to excute scipt main.

    • @aayush6835
      @aayush6835 4 ปีที่แล้ว

      if you use images or audio you need to add data

  • @fashadahmedsiddique8412
    @fashadahmedsiddique8412 3 ปีที่แล้ว

    What should be the command If there is more than one sub-module of the main script file?

    • @gboyegaokiki8736
      @gboyegaokiki8736 ปีที่แล้ว

      Sorry, have you gotten a solution to this yet?

    • @fashadahmedsiddique8412
      @fashadahmedsiddique8412 ปีที่แล้ว

      @@gboyegaokiki8736 Yes bro it's been a year

    • @gboyegaokiki8736
      @gboyegaokiki8736 ปีที่แล้ว

      @@fashadahmedsiddique8412 lol.... I just got to where I needed this..... how did you solve the problem.... I have 3 files which are linked together so I want to convert them to a single execution file

  • @elitefdc2171
    @elitefdc2171 3 ปีที่แล้ว

    Failed to execut script

  • @j.b.dineshkumar11-bio75
    @j.b.dineshkumar11-bio75 3 ปีที่แล้ว +1

    Bro I need some help from you bro

  • @fmailscammer
    @fmailscammer 4 ปีที่แล้ว

    Is there any way for this to be done on mac?

    • @fmailscammer
      @fmailscammer 4 ปีที่แล้ว

      Sorry, I meant is there any way to package for platforms that I choose instead of it just creating a Unix Executable.

  • @AlanRiosoff
    @AlanRiosoff 4 ปีที่แล้ว

    how to add binary?
    folder > nodejs.exe hey.py

  • @Pranshu1902p
    @Pranshu1902p 3 ปีที่แล้ว

    What was in the spent.db?? You didn't share that

    • @SouravJohar
      @SouravJohar  3 ปีที่แล้ว

      That was not relevant to the video. Think of that as just a dependent file which your code needs.

    • @notproplayer3649
      @notproplayer3649 3 ปีที่แล้ว

      @@SouravJohar but how do I get this file then ?

  • @pythonfan8688
    @pythonfan8688 4 ปีที่แล้ว

    The only downside is that it only works on the platform you converted it on, be it Windows 7, 10 or something else.

    • @joshuaolukotun9499
      @joshuaolukotun9499 3 ปีที่แล้ว

      If you convert it to exe on 32 bit, It would work on all Windows 32 bit... irrespective of the Windows version

  • @RahatulIslamUdoy
    @RahatulIslamUdoy 3 ปีที่แล้ว

    Windows detects the exe file as virus. How to solve it?

    • @dairyprods
      @dairyprods 3 ปีที่แล้ว +2

      if its an unsigned file it'll pretty much always be stopped by your AV.
      signing is mainly for companies so if you want to pay Microsoft $500 dollars for a digital signature go for it

  • @arjunpukale3310
    @arjunpukale3310 4 ปีที่แล้ว

    But u didn't include the other python file

    • @SouravJohar
      @SouravJohar  4 ปีที่แล้ว +1

      It automatically gets picked up, as we have imported it as a module in our main python file.

    • @arjunpukale3310
      @arjunpukale3310 4 ปีที่แล้ว

      @@SouravJohar my python file has a dependency on a saved ml model. When i run the script using cmd it works perfectly but when i create exe file it says fatal error: cannot run the script

    • @SouravJohar
      @SouravJohar  4 ปีที่แล้ว

      You need to add this ml model as a data dependency while making the executable

    • @arjunpukale3310
      @arjunpukale3310 4 ปีที่แล้ว

      @@SouravJohar actually i found the error, i made a simple file and added just one line : import sklearn. Now sklearn is installed in my anaconda virtual environment . But after creating exe it gives error no module named sklearn. So how to use pyinstaller for a python file in an virtual environment

  • @julianf.66
    @julianf.66 3 ปีที่แล้ว

    Can you share the source code of your example? :)

  • @anaghanimbekar7910
    @anaghanimbekar7910 5 ปีที่แล้ว

    hello, Iam trying make an executable for my python script but after running the command "pyinstaller --onefile 5feb_accuracy90.py" , it gives error like
    48 INFO: PyInstaller: 3.4
    48 INFO: Python: 3.6.8
    49 INFO: Platform: Linux-4.4.0-142-generic-x86_64-with-debian-stretch-sid
    49 INFO: wrote /home/intern/5feb_accuracy90.spec
    51 INFO: UPX is not available.
    Traceback (most recent call last):
    File "/home/intern/anaconda3/bin/pyinstaller", line 10, in
    sys.exit(run())
    File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/__main__.py", line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
    File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/__main__.py", line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
    File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 838, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
    File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 784, in build
    exec(text, spec_namespace)
    File "", line 17, in
    File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 189, in __init__
    raise ValueError("script '%s' not found" % script)
    ValueError: script '/home/intern/5feb_accuracy90.py' not found
    can you please help me out?
    Thank you

    • @SouravJohar
      @SouravJohar  5 ปีที่แล้ว

      Looks like pyinstaller is unable to find your python file. Make sure you're running the command from the right directory, which has your python file.

    • @anaghanimbekar7910
      @anaghanimbekar7910 5 ปีที่แล้ว

      @@SouravJohar yes i am running the command from the same directory of my python file .But still facing the issue.

    • @anaghanimbekar7910
      @anaghanimbekar7910 5 ปีที่แล้ว

      now i am getting the following after running the command "pyinstaller --onefile --add-data '/home/intern/anaconda3/anagha:.' 5feb_accuracy90.py"
      48 INFO: PyInstaller: 3.4
      48 INFO: Python: 3.6.8
      49 INFO: Platform: Linux-4.4.0-142-generic-x86_64-with-debian-stretch-sid
      49 INFO: wrote /home/intern/anaconda3/5feb_accuracy90.spec
      51 INFO: UPX is not available.
      52 INFO: Extending PYTHONPATH with paths
      ['/home/intern/anaconda3', '/home/intern/anaconda3']
      52 INFO: checking Analysis
      131 INFO: Appending 'datas' from .spec
      154 INFO: checking PYZ
      154 INFO: Building PYZ because PYZ-00.toc is non existent
      154 INFO: Building PYZ (ZlibArchive) /home/intern/anaconda3/build/5feb_accuracy90/PYZ-00.pyz
      6699 INFO: Building PYZ (ZlibArchive) /home/intern/anaconda3/build/5feb_accuracy90/PYZ-00.pyz completed successfully.
      6761 INFO: checking PKG
      6761 INFO: Building PKG because PKG-00.toc is non existent
      6762 INFO: Building PKG (CArchive) PKG-00.pkg
      Traceback (most recent call last):
      File "/home/intern/anaconda3/bin/pyinstaller", line 10, in
      sys.exit(run())
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/__main__.py", line 111, in run
      run_build(pyi_config, spec_file, **vars(args))
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/__main__.py", line 63, in run_build
      PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 838, in main
      build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 784, in build
      exec(text, spec_namespace)
      File "", line 32, in
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/api.py", line 424, in __init__
      strip_binaries=self.strip, upx_binaries=self.upx,
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/api.py", line 196, in __init__
      self.__postinit__()
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/datastruct.py", line 158, in __postinit__
      self.assemble()
      File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/api.py", line 273, in assemble
      pylib_name = os.path.basename(bindepend.get_python_library_path())
      File "/home/intern/anaconda3/lib/python3.6/posixpath.py", line 146, in basename
      p = os.fspath(p)
      TypeError: expected str, bytes or os.PathLike object, not NoneType
      waiting for your reply .

    • @anaghanimbekar7910
      @anaghanimbekar7910 5 ปีที่แล้ว

      now i am getting the following after running the command "pyinstaller --onefile --add-data '/home/intern/anaconda3/anagha:.' 5feb_accuracy90.py"
      48 INFO: PyInstaller: 3.4 48 INFO: Python: 3.6.8 49 INFO: Platform: Linux-4.4.0-142-generic-x86_64-with-debian-stretch-sid
      49 INFO: wrote /home/intern/anaconda3/5feb_accuracy90.spec
      51 INFO: UPX is not available. 52 INFO: Extending PYTHONPATH with paths ['/home/intern/anaconda3', '/home/intern/anaconda3']
      52 INFO: checking Analysis
      131 INFO: Appending 'datas' from .spec
      154 INFO: checking PYZ 154 INFO: Building PYZ because PYZ-00.toc is non existent
      154 INFO: Building PYZ (ZlibArchive) /home/intern/anaconda3/build/5feb_accuracy90/PYZ-00.pyz
      6699 INFO: Building PYZ (ZlibArchive) /home/intern/anaconda3/build/5feb_accuracy90/PYZ-00.pyz completed successfully.
      6761 INFO: checking PKG
      6761 INFO: Building PKG because PKG-00.toc is non existent
      6762 INFO: Building PKG (CArchive) PKG-00.pkg Traceback (most recent call last): File "/home/intern/anaconda3/bin/pyinstaller", line 10, in sys.exit(run()) File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/__main__.py", line 111, in run run_build(pyi_config, spec_file, **vars(args)) File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/__main__.py", line 63, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build___main.py__", line 838, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/build___main.py__", line 784, in build exec(text, spec_namespace) File "", line 32, in File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/__api.py__", line 424, in _init_ strip_binaries=self.strip, upx_binaries=self.upx, File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/api.py", line 196, in _init_ self.__postinit__() File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/__datastruct.py__", line 158, in _postinit_ self.assemble() File "/home/intern/anaconda3/lib/python3.6/site-packages/PyInstaller/building/api.py", line 273, in assemble pylib_name = os.path.basename(bindepend.get_python_library_path()) File "/home/intern/anaconda3/lib/python3.6/posixpath.py", line 146, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType
      waiting for your reply .

  • @hmak5423
    @hmak5423 3 ปีที่แล้ว

    Didn’t get to the point even till the end.

  • @nemishjain3675
    @nemishjain3675 3 ปีที่แล้ว

    Heyyy! I'm getting some problem while converting my python project to exe. Can i get your mail id??

  • @thecardtrickstudent3870
    @thecardtrickstudent3870 2 ปีที่แล้ว

    sir, when i call the executable is doesn't run until the virtual environment is activated. How to fix it?