Hi Korinne and Jack,

Thanks a lot for your replies, I've been reading up on virtual environments and get it working using a workaround described below:

Created a path: /Projects/Python/Excel
1. Python –m –venv vpenv –system-site-packages

A folder structure named vpenv was created below the Excel folder containing 107 directories with 863 files.
2. Then I tried to activate this virtual environment by:

# pwd
/Projects/Python/Excel
# /Projects/Python/Excel/vpenv/bin/activate
/Projects/Python/Excel/vpenv/bin/activate: syntax error at line 44: `VIRTUAL_ENV=$' unexpected
#

By qualifying the pip command to the vpenv folder it successfully installed XlsxWriter

3.
# /projects/Python/Excel/vpenv/bin/pip install xlsxwriter
Collecting xlsxwriter
Downloading XlsxWriter-3.2.2-py3-none-any.whl.metadata (2.8 kB)
Downloading XlsxWriter-3.2.2-py3-none-any.whl (165 kB)
Installing collected packages: xlsxwriter
Successfully installed xlsxwriter-3.2.2


Is there anything I should have done differently to be able to "activate" the virtual environment?

Best regards

Stefan


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.