I'm wanting to explore the -scpi- packages of Catteneo et al. for Synthetic Control which use Stata's Python integration feature (https://nppackages.github.io/scpi/ ) This Python newbie is not having any success installing them. (Stata 17MP on Windows 10)
My Python installation is fine, I think
I discover I need Python's pip command to do installations. (Cf. https://blog.stata.com/2020/09/01/st...thon-packages/ )
I downloaded a copy of "get-pip.py" from the internet to my Python directory C:\Users\JENKINSS\Anaconda3.
Directory of C:\Users\JENKINSS\Anaconda3
22/02/2022 18:10 2,609,803 get-pip.py
1 File(s) 2,609,803 bytes
0 Dir(s) 397,221,289,984 bytes free
According to an internet page I saw, I need -pip- to install -ssl-!
Overall result: I'm lost. And, to be honest, surprised at the degree of hassle required for what I thought be a basic task -- though my immediate counter-reaction is that I must be doing something wrong, and there must be some easier way ... but what is it? Thanks for any tips
Or is there some issue regarding local admin rights. (It's my office PC, and so controlled by local IT services ... but I do have some local admin rights that enable me to install software.)
My Python installation is fine, I think
Code:
. python query -------------------------------------------------------------------------------- Python Settings set python_exec C:\Users\JENKINSS\Anaconda3\python.exe set python_userpath Python system information initialized yes version 3.8.8 architecture 64-bit library path C:\Users\JENKINSS\Anaconda3\python38.dll
I downloaded a copy of "get-pip.py" from the internet to my Python directory C:\Users\JENKINSS\Anaconda3.
Directory of C:\Users\JENKINSS\Anaconda3
22/02/2022 18:10 2,609,803 get-pip.py
1 File(s) 2,609,803 bytes
0 Dir(s) 397,221,289,984 bytes free
Code:
Then I tried to install it and got error messages saying I need the -ssl- Python module! C:\Users\JENKINSS\Anaconda3>python get-pip.py WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement pip (from versions: none) ERROR: No matching distribution found for pip WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
According to an internet page I saw, I need -pip- to install -ssl-!
Overall result: I'm lost. And, to be honest, surprised at the degree of hassle required for what I thought be a basic task -- though my immediate counter-reaction is that I must be doing something wrong, and there must be some easier way ... but what is it? Thanks for any tips
Or is there some issue regarding local admin rights. (It's my office PC, and so controlled by local IT services ... but I do have some local admin rights that enable me to install software.)
Comment