Python Forum
can someone test the code for me
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can someone test the code for me
#3
I don't use Windows, but I think a more robust way to write the subprocess call is
import sys
subprocess.call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'translators'])
Reply


Messages In This Thread
can someone test the code for me - by kucingkembar - Feb-16-2022, 07:42 PM
RE: can someone test the code for me - by Gribouillis - Feb-16-2022, 08:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,294 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  How to write test cases for a init function by Unit test in python? binhduonggttn 2 3,212 Feb-24-2020, 12:06 PM
Last Post: Larz60+
  How to write test cases by Unit test for database configuration file? binhduonggttn 0 2,626 Feb-18-2020, 08:03 AM
Last Post: binhduonggttn
  Mix-in class tree file not running the self test code. arjunsingh2908 3 3,068 Aug-14-2018, 05:46 PM
Last Post: arjunsingh2908
  code pattern to test if list has all the same Skaperen 5 3,603 Jul-25-2018, 06:09 AM
Last Post: buran

Forum Jump:

User Panel Messages

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