I recently started delving into python (been postponing due to the learning curve!) and am facing some struggles right off the bat. I want to start out working with spreadsheets alongside a tutorial, but cannot get the necessary tools to install and work.
I’ve installed Python 3.12, followed by the latest Visual Studio Code, where I am mainly operating in, and then tried to install openpyxl to work on excel spreadsheets. I’ve got some code typed in a python project, but require openpyxl to compile and execute the code. Upon trying to install openpyxl, I received an error “no such file or directory”. It appeared through troubleshooting that I require “setuptools” to be installed first, so off I went.
Trying to install setup tools following the guide at https://setuptools.pypa.io/en/latest/userguide/quickstart.html didn’t help much, as I ran into trouble figuring out how to operate the pip installations.
So off I go trying to figure out what/where/how pip works, but ran into trouble trying the suggestions at this page https://www.w3schools.com/python/python_pip.asp. I’ve opened CMD and tried to execute the suggest install commands for setuptools, but I receive the error “the system cannot find the path specified. I don’t know what is missing or what I’m doing wrong to get the errors below:
enter image description here
and I’m trying to point it to this directory, assuming it is correct:
enter image description here
At this point I’m quite frustrated by the whole process of each library/script requiring another library/script requiring another, and the root not working, causing everything else to not work.
I would please appreciate handholding/signposting in getting this resolved!
Dirk Lourens is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.