Finally summer 2020 has arrived. Today’s high is in the lower to mid 70s. Currently the sky is overcast. My wife and I prefer it sunny but the temperature is fine with me. My wife prefers hot and humid weather. Not everyone likes chocolate. We will probably keep the windows open all day. Living in Minnesota with long and cold winters, fresh air is always welcomed.
Yesterday we spoke over Jitsi with a couple of friends we both know since our teens. We have traveled abroad on several occasions with and without family. We were going to chat last Sunday (Father’s Day) but due to our schedules we postponed it until Monday. We found out that both have been diagnosed with COVID-19 and are being treated as we speak. Their daughter, who lives with them, has not contracted the virus yet. They both looked tired so we limited our call to 20 minutes. Typically we go for a couple hours. Hopefully all will go well and they will have a short recovery!
Last week my wife and I made bomboloni. I grew up with this desert. The pastry was filled with dulce de leche. We fill them with pastry cream and / or dulce de leche. When we use pastry cream as a filling, my wife likes to fold the cream with Chantilly cream also known as whipped cream. It makes the filling silkier and tastier. You can find many recipes on-line. If you are interested I can provide you with my recipe. The trick with this desert is to get the dough to the proper consistency while in the mixer. It takes a few passes to get the bomboloni right.
OK, enough chit chat, let’s get to the main subject of this post. In previous post I have mentioned that I have run into issues when using VSCode and Python on Windows 10 machines. As a matter of fact, on one machine, VSCode crashes the computer when I attempt to run a program using the VSCode terminal. I have installed and uninstalled VSCode and Python but the issue persists. It is interesting that different versions of Visual Studio Enterprise Edition seem to work fine.
In some cases when using Python, you are required to build a library from source code. On Windows 10, after spending a lot of time and installing different toolkits, I have been able to get the programs to run. I have noticed that most people use Linux or Macintosh computers for development. In this post I will show what I did to install and update software to get to the point that I feel all is ready to build Python software on one of my Linux machines which uses CentOS 7.
I started preparing my Linux machine by locating the VSCode rpm package. I did so by doing a Google search. Once I located the package, I downloaded it to my Linux computer.
# **** list directories **** johncanessa@ceph1 ~]$ ls anaconda3 ceph Desktop Downloads eclipse.desktop kubernetes Music REST Templates Videos aws-cli cpp Docker DynamoDB eclipse-workspace maven Pictures scripts TensorFlow BeautifulSoup data docs eclipse Kafka ml Public temp venv # **** get to the Downloads folder **** [johncanessa@ceph1 ~]$ cd Downloads/ # **** list the contents of the folder **** [johncanessa@ceph1 Downloads]$ ls -l total 88136 -rw-rw-r--. 1 johncanessa johncanessa 90249356 Jun 22 14:38 code-1.46.1-1592429042.el7.x86_64.rpm # **** install the RPM package for VSCode **** [johncanessa@ceph1 Downloads]$ sudo yum install code-1.46.1-1592429042.el7.x86_64.rpm [sudo] password for johncanessa: Loaded plugins: fastestmirror, langpacks Examining code-1.46.1-1592429042.el7.x86_64.rpm: code-1.46.1-1592429042.el7.x86_64 Marking code-1.46.1-1592429042.el7.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package code.x86_64 0:1.46.1-1592429042.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================== Installing: code x86_64 1.46.1-1592429042.el7 /code-1.46.1-1592429042.el7.x86_64 257 M Transaction Summary ===================================================================================================================================== Install 1 Package Total size: 257 M Installed size: 257 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : code-1.46.1-1592429042.el7.x86_64 1/1 Verifying : code-1.46.1-1592429042.el7.x86_64 1/1 Installed: code.x86_64 0:1.46.1-1592429042.el7 Complete!
After the installation I opened VSCode. It seemed that all was well so far so I closed the IDE.
# **** where is python installed **** johncanessa@ceph1 ~]$ which python ~/anaconda3/bin/python # **** get the python version **** [johncanessa@ceph1 ~]$ python --version Python 3.6.5 :: Anaconda, Inc.
I checked the location in which Python was installed. I fully understand you can have different Python versions on the same machine and are able to use them in different projects. At this time I just wanted to have one version. I also got the installed version of Python. With that information I decided to first update conda.
# **** update conda **** [johncanessa@ceph1 Downloads]$ conda update --all Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.4.6 latest version: 4.8.3 Please update conda by running $ conda update -n base conda ## Package Plan ## environment location: /home/johncanessa/anaconda3 The following packages will be downloaded: package | build ---------------------------|----------------- libstdcxx-ng-9.1.0 | hdf63c60_0 4.0 MB _libgcc_mutex-0.1 | main 3 KB libgcc-ng-9.1.0 | hdf63c60_0 8.1 MB ca-certificates-2020.1.1 | 0 132 KB redis-5.0.3 | h7b6447c_0 10.6 MB intel-openmp-2020.1 | 217 940 KB libgfortran-ng-8.2.0 | hdf63c60_1 1.8 MB conda-env-2.6.0 | 1 3 KB libiconv-1.15 | h63c8f33_5 2.0 MB mkl-2020.1 | 217 200.5 MB ------------------------------------------------------------ Total: 228.1 MB The following NEW packages will be INSTALLED: _libgcc_mutex: 0.1-main The following packages will be UPDATED: ca-certificates: 2018.03.07-0 --> 2020.1.1-0 conda-env: 2.6.0-h36134e3_1 --> 2.6.0-1 intel-openmp: 2018.0.0-8 --> 2020.1-217 libgcc-ng: 7.2.0-hdf63c60_3 --> 9.1.0-hdf63c60_0 libgfortran-ng: 7.2.0-hdf63c60_3 --> 8.2.0-hdf63c60_1 libiconv: 1.14-0 --> 1.15-h63c8f33_5 libstdcxx-ng: 7.2.0-hdf63c60_3 --> 9.1.0-hdf63c60_0 mkl: 2018.0.2-1 --> 2020.1-217 redis: 3.2.0-0 --> 5.0.3-h7b6447c_0 Proceed ([y]/n)? y Downloading and Extracting Packages libstdcxx-ng 9.1.0: ######################################################################################################### | 100% _libgcc_mutex 0.1: ########################################################################################################## | 100% libgcc-ng 9.1.0: ############################################################################################################ | 100% ca-certificates 2020.1.1: ################################################################################################### | 100% redis 5.0.3: ################################################################################################################ | 100% intel-openmp 2020.1: ######################################################################################################## | 100% libgfortran-ng 8.2.0: ####################################################################################################### | 100% conda-env 2.6.0: ############################################################################################################ | 100% libiconv 1.15: ############################################################################################################## | 100% mkl 2020.1: ################################################################################################################# | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done # **** as suggested by the previous step **** [johncanessa@ceph1 ~]$ conda update -n base conda Solving environment: done ## Package Plan ## environment location: /home/johncanessa/anaconda3 added / updated specs: - conda The following packages will be downloaded: package | build ---------------------------|----------------- tk-8.6.10 | hbc83047_0 3.2 MB glib-2.56.2 | hd408876_0 5.0 MB pillow-5.4.1 | py36h34e0f95_0 627 KB curl-7.67.0 | hbc83047_0 145 KB pycurl-7.43.0.5 | py36h1ba5d50_0 71 KB qt-5.9.7 | h5867ecd_1 85.9 MB cryptography-2.9.2 | py36h1ba5d50_0 626 KB pango-1.42.3 | h8589676_0 522 KB libpng-1.6.37 | hbc83047_0 364 KB krb5-1.16.1 | h173b8e3_7 1.4 MB libcurl-7.67.0 | h20c2e04_0 576 KB fontconfig-2.13.0 | h9420a91_0 291 KB sqlite-3.26.0 | h7b6447c_0 1.9 MB openssl-1.1.1g | h7b6447c_0 3.8 MB conda-4.8.3 | py36_0 3.0 MB libssh2-1.9.0 | h1ba5d50_1 346 KB python-3.6.8 | h0371630_0 34.4 MB tqdm-4.46.1 | py_0 60 KB certifi-2020.6.20 | py36_0 160 KB fribidi-1.0.5 | h7b6447c_0 112 KB cairo-1.14.12 | h8948797_3 1.3 MB expat-2.2.6 | he6710b0_0 187 KB conda-package-handling-1.6.1| py36h7b6447c_0 886 KB freetype-2.10.2 | h5ab3b9f_0 915 KB harfbuzz-1.8.8 | hffaf4a1_0 863 KB libuuid-1.0.3 | h1bed415_2 16 KB ------------------------------------------------------------ Total: 146.5 MB The following NEW packages will be INSTALLED: conda-package-handling: 1.6.1-py36h7b6447c_0 fribidi: 1.0.5-h7b6447c_0 krb5: 1.16.1-h173b8e3_7 libuuid: 1.0.3-h1bed415_2 tqdm: 4.46.1-py_0 The following packages will be UPDATED: cairo: 1.14.12-h7636065_2 --> 1.14.12-h8948797_3 certifi: 2018.4.16-py36_0 --> 2020.6.20-py36_0 conda: 4.4.6-py36_0 --> 4.8.3-py36_0 cryptography: 2.2.2-py36h14c3975_0 --> 2.9.2-py36h1ba5d50_0 curl: 7.60.0-h84994c4_0 --> 7.67.0-hbc83047_0 expat: 2.2.5-he0dffb1_0 --> 2.2.6-he6710b0_0 fontconfig: 2.12.6-h49f89f6_0 --> 2.13.0-h9420a91_0 freetype: 2.8-hab7d2ae_1 --> 2.10.2-h5ab3b9f_0 glib: 2.56.1-h000015b_0 --> 2.56.2-hd408876_0 harfbuzz: 1.7.6-h5f0a787_1 --> 1.8.8-hffaf4a1_0 libcurl: 7.60.0-h1ad7b7a_0 --> 7.67.0-h20c2e04_0 libpng: 1.6.34-hb9fc6fc_0 --> 1.6.37-hbc83047_0 libssh2: 1.8.0-h9cfc8f7_4 --> 1.9.0-h1ba5d50_1 openssl: 1.0.2o-h20670df_0 --> 1.1.1g-h7b6447c_0 pango: 1.41.0-hd475d92_0 --> 1.42.3-h8589676_0 pillow: 5.1.0-py36h3deb7b8_0 --> 5.4.1-py36h34e0f95_0 pycurl: 7.43.0.1-py36hb7f436b_0 --> 7.43.0.5-py36h1ba5d50_0 python: 3.6.5-hc3d631a_2 --> 3.6.8-h0371630_0 qt: 5.9.5-h7e424d6_0 --> 5.9.7-h5867ecd_1 sqlite: 3.23.1-he433501_0 --> 3.26.0-h7b6447c_0 tk: 8.6.7-hc745277_3 --> 8.6.10-hbc83047_0 Proceed ([y]/n)? y Downloading and Extracting Packages tk 8.6.10: ###################################################################################################### | 100% glib 2.56.2: #################################################################################################### | 100% pillow 5.4.1: ################################################################################################### | 100% curl 7.67.0: #################################################################################################### | 100% pycurl 7.43.0.5: ################################################################################################ | 100% qt 5.9.7: ####################################################################################################### | 100% cryptography 2.9.2: ############################################################################################# | 100% pango 1.42.3: ################################################################################################### | 100% libpng 1.6.37: ################################################################################################## | 100% krb5 1.16.1: #################################################################################################### | 100% libcurl 7.67.0: ################################################################################################# | 100% fontconfig 2.13.0: ############################################################################################## | 100% sqlite 3.26.0: ################################################################################################## | 100% openssl 1.1.1g: ################################################################################################# | 100% conda 4.8.3: #################################################################################################### | 100% libssh2 1.9.0: ################################################################################################## | 100% python 3.6.8: ################################################################################################### | 100% tqdm 4.46.1: #################################################################################################### | 100% certifi 2020.6.20: ############################################################################################## | 100% fribidi 1.0.5: ################################################################################################## | 100% cairo 1.14.12: ################################################################################################## | 100% expat 2.2.6: #################################################################################################### | 100% conda-package-handling 1.6.1: ################################################################################### | 100% freetype 2.10.2: ################################################################################################ | 100% harfbuzz 1.8.8: ################################################################################################# | 100% libuuid 1.0.3: ################################################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done
I updated conda, but in the process the update suggested an alternate (and more comprehensive update method) so I decided to follow the suggestion. As you can see many other packages (i.e., Python) were also updated.
# **** get the current version of Git **** [johncanessa@ceph1 workspace0]$ git --version git version 1.8.3.1 # **** get additional information about Git **** [johncanessa@ceph1 workspace0]$ yum info git Loaded plugins: fastestmirror, langpacks Determining fastest mirrors * base: mirrors.usinternet.com * epel: d2lzkl7pfhq30w.cloudfront.net * extras: mirror.trouble-free.net * updates: mirrors.usinternet.com google-chrome 3/3 Installed Packages Name : git Arch : x86_64 Version : 1.8.3.1 Release : 23.el7_8 Size : 22 M Repo : installed From repo : updates Summary : Fast Version Control System URL : http://git-scm.com/ License : GPLv2 Description : Git is a fast, scalable, distributed revision control system with an : unusually rich command set that provides both high-level operations : and full access to internals. : : The git rpm installs the core tools with minimal dependencies. To : install all git packages, including tools for integrating with other : SCMs, install the git-all meta-package. # **** remove the current version of Git **** [johncanessa@ceph1 workspace0]$ sudo yum remove git* Loaded plugins: fastestmirror, langpacks Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.8.3.1-23.el7_8 will be erased --> Processing Dependency: git = 1.8.3.1-23.el7_8 for package: perl-Git-1.8.3.1-23.el7_8.noarch --> Processing Dependency: git for package: gettext-devel-0.19.8.1-3.el7.x86_64 --> Running transaction check ---> Package gettext-devel.x86_64 0:0.19.8.1-3.el7 will be erased --> Processing Dependency: gettext-devel for package: intltool-0.50.2-7.el7.noarch ---> Package perl-Git.noarch 0:1.8.3.1-23.el7_8 will be erased --> Running transaction check ---> Package intltool.noarch 0:0.50.2-7.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================ Removing: git x86_64 1.8.3.1-23.el7_8 @updates 22 M Removing for dependencies: gettext-devel x86_64 0.19.8.1-3.el7 @base 1.4 M intltool noarch 0.50.2-7.el7 @anaconda 166 k perl-Git noarch 1.8.3.1-23.el7_8 @updates 57 k Transaction Summary ============================================================================================================================================ Remove 1 Package (+3 Dependent packages) Installed size: 24 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : intltool-0.50.2-7.el7.noarch 1/4 Erasing : gettext-devel-0.19.8.1-3.el7.x86_64 2/4 Erasing : perl-Git-1.8.3.1-23.el7_8.noarch 3/4 Erasing : git-1.8.3.1-23.el7_8.x86_64 4/4 Verifying : git-1.8.3.1-23.el7_8.x86_64 1/4 Verifying : intltool-0.50.2-7.el7.noarch 2/4 Verifying : perl-Git-1.8.3.1-23.el7_8.noarch 3/4 Verifying : gettext-devel-0.19.8.1-3.el7.x86_64 4/4 Removed: git.x86_64 0:1.8.3.1-23.el7_8 Dependency Removed: gettext-devel.x86_64 0:0.19.8.1-3.el7 intltool.noarch 0:0.50.2-7.el7 perl-Git.noarch 0:1.8.3.1-23.el7_8 Complete! # **** verify that Git is gone **** [johncanessa@ceph1 temp]$ git --version bash: git: command not found... # **** get the RPM package **** [johncanessa@ceph1 workspace0]$ sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm Loaded plugins: fastestmirror, langpacks endpoint-repo-1.7-1.x86_64.rpm | 10 kB 00:00:00 Examining /var/tmp/yum-root-EcTZSQ/endpoint-repo-1.7-1.x86_64.rpm: endpoint-repo-1.7-1.x86_64 Marking /var/tmp/yum-root-EcTZSQ/endpoint-repo-1.7-1.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package endpoint-repo.x86_64 0:1.7-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================ Installing: endpoint-repo x86_64 1.7-1 /endpoint-repo-1.7-1.x86_64 3.3 k Transaction Summary ============================================================================================================================================ Install 1 Package Total size: 3.3 k Installed size: 3.3 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : endpoint-repo-1.7-1.x86_64 1/1 Verifying : endpoint-repo-1.7-1.x86_64 1/1 Installed: endpoint-repo.x86_64 0:1.7-1 Complete! # **** install git **** [johncanessa@ceph1 workspace0]$ sudo yum install git Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.usinternet.com * epel: mirror.team-cymru.com * extras: repos.dfw.quadranet.com * updates: mirrors.usinternet.com endpoint | 2.9 kB 00:00:00 endpoint/7/x86_64/primary_db | 601 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:2.24.1-1.ep7 will be installed --> Processing Dependency: git-core-doc = 2.24.1-1.ep7 for package: git-2.24.1-1.ep7.x86_64 --> Processing Dependency: git-core = 2.24.1-1.ep7 for package: git-2.24.1-1.ep7.x86_64 --> Processing Dependency: perl-Git = 2.24.1-1.ep7 for package: git-2.24.1-1.ep7.x86_64 --> Processing Dependency: perl(Git::I18N) for package: git-2.24.1-1.ep7.x86_64 --> Processing Dependency: perl(Git) for package: git-2.24.1-1.ep7.x86_64 --> Running transaction check ---> Package git-core.x86_64 0:2.24.1-1.ep7 will be installed ---> Package git-core-doc.noarch 0:2.24.1-1.ep7 will be installed ---> Package perl-Git.noarch 0:2.24.1-1.ep7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================ Installing: git x86_64 2.24.1-1.ep7 endpoint 139 k Installing for dependencies: git-core x86_64 2.24.1-1.ep7 endpoint 5.1 M git-core-doc noarch 2.24.1-1.ep7 endpoint 2.4 M perl-Git noarch 2.24.1-1.ep7 endpoint 47 k Transaction Summary ============================================================================================================================================ Install 1 Package (+3 Dependent packages) Total download size: 7.7 M Installed size: 41 M Is this ok [y/d/N]: y Downloading packages: (1/4): git-2.24.1-1.ep7.x86_64.rpm | 139 kB 00:00:00 (2/4): git-core-doc-2.24.1-1.ep7.noarch.rpm | 2.4 MB 00:00:00 (3/4): git-core-2.24.1-1.ep7.x86_64.rpm | 5.1 MB 00:00:01 (4/4): perl-Git-2.24.1-1.ep7.noarch.rpm | 47 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------- Total 6.3 MB/s | 7.7 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : git-core-2.24.1-1.ep7.x86_64 1/4 Installing : git-core-doc-2.24.1-1.ep7.noarch 2/4 Installing : git-2.24.1-1.ep7.x86_64 3/4 Installing : perl-Git-2.24.1-1.ep7.noarch 4/4 Verifying : perl-Git-2.24.1-1.ep7.noarch 1/4 Verifying : git-core-doc-2.24.1-1.ep7.noarch 2/4 Verifying : git-2.24.1-1.ep7.x86_64 3/4 Verifying : git-core-2.24.1-1.ep7.x86_64 4/4 Installed: git.x86_64 0:2.24.1-1.ep7 Dependency Installed: git-core.x86_64 0:2.24.1-1.ep7 git-core-doc.noarch 0:2.24.1-1.ep7 perl-Git.noarch 0:2.24.1-1.ep7 Complete! # **** display the current git version **** [johncanessa@ceph1 workspace0]$ git --version git version 2.24.1
Given that I like to keep my Git repositories up to date, I decided to also update git. I started by getting information about the current version installed on my machine. I then removed Git from my computer.
After getting the necessary RPM package I installed it. The new Git version is 2.24.1.
# **** check the contents of my workspace **** [johncanessa@ceph1 workspace0]$ ls -l total 0 # **** clone one of my GitHub repositories **** [johncanessa@ceph1 workspace0]$ git clone https://github.com/JohnCanessa/CS50Python.git Cloning into 'CS50Python'... remote: Enumerating objects: 44, done. remote: Counting objects: 100% (44/44), done. remote: Compressing objects: 100% (41/41), done. remote: Total 44 (delta 4), reused 37 (delta 2), pack-reused 0 Unpacking objects: 100% (44/44), done. # **** check if the associated folder was generated **** [johncanessa@ceph1 workspace0]$ ls CS50Python # **** change directory **** [johncanessa@ceph1 workspace0]$ cd CS50Python/ # **** list the contents of the folder **** [johncanessa@ceph1 CS50Python]$ ls -al total 17776 drwxrwxr-x. 3 johncanessa johncanessa 4096 Jun 22 15:41 . drwxrwxr-x. 3 johncanessa johncanessa 24 Jun 22 15:40 .. -rw-rw-r--. 1 johncanessa johncanessa 670 Jun 22 15:41 agree.py -rw-rw-r--. 1 johncanessa johncanessa 335 Jun 22 15:41 argv.py -rw-rw-r--. 1 johncanessa johncanessa 226 Jun 22 15:41 blur.py -rw-rw-r--. 1 johncanessa johncanessa 7518 Jun 22 15:41 bridge.jpg -rw-rw-r--. 1 johncanessa johncanessa 530495 Jun 22 15:41 carmen.jpg -rw-rw-r--. 1 johncanessa johncanessa 405 Jun 22 15:41 compare.py -rw-rw-r--. 1 johncanessa johncanessa 223 Jun 22 15:41 conditions.py -rw-rw-r--. 1 johncanessa johncanessa 507 Jun 22 15:41 cough.py -rw-rw-r--. 1 johncanessa johncanessa 1171 Jun 22 15:41 detect.py -rw-rw-r--. 1 johncanessa johncanessa 2058 Jun 22 15:41 dictionary.py -rw-rw-r--. 1 johncanessa johncanessa 75879 Jun 22 15:41 dict.txt -rw-rw-r--. 1 johncanessa johncanessa 743 Jun 22 15:41 exit.py drwxrwxr-x. 8 johncanessa johncanessa 163 Jun 22 15:41 .git -rw-rw-r--. 1 johncanessa johncanessa 1120 Jun 22 15:41 hello.py -rw-rw-r--. 1 johncanessa johncanessa 147 Jun 22 15:41 int.py -rw-rw-r--. 1 johncanessa johncanessa 1650243 Jun 22 15:41 john.jpg -rw-rw-r--. 1 johncanessa johncanessa 2365218 Jun 22 15:41 malan.jpg -rw-rw-r--. 1 johncanessa johncanessa 387 Jun 22 15:41 mario.py -rw-rw-r--. 1 johncanessa johncanessa 1013 Jun 22 15:41 names.py -rw-rw-r--. 1 johncanessa johncanessa 6684 Jun 22 15:41 out.jpg -rw-rw-r--. 1 johncanessa johncanessa 189 Jun 22 15:41 overflow.py -rw-rw-r--. 1 johncanessa johncanessa 618 Jun 22 15:41 phonebook1.py -rw-rw-r--. 1 johncanessa johncanessa 220 Jun 22 15:41 phonebook.csv -rw-rw-r--. 1 johncanessa johncanessa 915 Jun 22 15:41 phonebook.py -rw-rw-r--. 1 johncanessa johncanessa 548 Jun 22 15:41 positive.py -rw-rw-r--. 1 johncanessa johncanessa 465 Jun 22 15:41 README.md -rw-rw-r--. 1 johncanessa johncanessa 2012 Jun 22 15:41 recognize.py -rw-rw-r--. 1 johncanessa johncanessa 82484 Jun 22 15:41 rome_italy.jpg -rw-rw-r--. 1 johncanessa johncanessa 664 Jun 22 15:41 scores.py -rw-rw-r--. 1 johncanessa johncanessa 835 Jun 22 15:41 speech.py -rw-rw-r--. 1 johncanessa johncanessa 139 Jun 22 15:41 string0.py -rw-rw-r--. 1 johncanessa johncanessa 464 Jun 22 15:41 string1.py -rw-rw-r--. 1 johncanessa johncanessa 568 Jun 22 15:41 swap.py -rw-rw-r--. 1 johncanessa johncanessa 417 Jun 22 15:41 uppercase.py -rw-rw-r--. 1 johncanessa johncanessa 839 Jun 22 15:41 voice.py -rw-rw-r--. 1 johncanessa johncanessa 1085 Jun 22 15:41 voices2.py -rw-rw-r--. 1 johncanessa johncanessa 892 Jun 22 15:41 voices3.py -rw-rw-r--. 1 johncanessa johncanessa 13345640 Jun 22 15:41 yale.jpg # **** starte the VSCode IDE **** [johncanessa@ceph1 CS50Python]$ code # **** run the cough.py script **** [johncanessa@ceph1 CS50Python]$ python cough.py cough cough cough cough cough cough cough cough cough cough cough cough cough cough cough
I checked my workspace and verified it was empty. I then cloned the repository associated with my CS50 2019 Lecture 6 – Python post.
I then started VSCode and opened the CS50Python folder. I selected the cough.py script. I then installed the Python extension for Visual Studio Code. Set the Anaconda version of Python to be used by VSCode.
When that was done ran a few Python scripts to verify that all was well. In the last screen capture I just showed running cough.py script.
If you have comments or questions regarding this, or any other post in this blog, or if you would like for me to serve of assistance with any phase in the SDLC (Software Development Life Cycle) of a project associated with a product or service, please do not hesitate and leave me a note below. If you prefer, send me a private message using the following address: john.canessa@gmail.com. I will reply as soon as possible.
Keep on reading and experimenting. It is the best way to learn, refresh your knowledge and enhance your developer toolset!
One last thing, many thanks to all 1,172 subscribers to my blog!!!
Keep safe during the COVID-19 pandemic and help restart the world economy.
John
Twitter: @john_canessa