This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Normally to create a virtual environment, we can do so from the command prompt with:: | |
| C:\Users\me>python -m venv venv | |
| This doesn't work when we are within a virtual environment though:: | |
| (venv) C:Users\me>python -m venv venv2 | |
| Error: Command '['C:\\Users\\me\\venv2\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3221226505. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # i read an excel file from gmail, and the response was returned as bytes like: | |
| # b'this is my excel file as a byte string' | |
| # i wanted to use pandas to get this into a dataframe using pd.get_excel(filename). | |
| # typically I would input the path to the excel file, which would require me to | |
| # save the excel file first using: | |
| with open("my_file.xlsx", "wb") as f: | |
| f.write() |