Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting 'Time' to AM/PM
#11
to bowlofred, I love you man! Wink

to snippsat,
It'll be great if I could use "pendulum" module but for some reason, I could not install it on any of my 3 machines.
I could not install it on my laptop, desktop and my 2019 server.
ERROR: Could not find a version that satisfies the requirement pendulum (from versions: none)
ERROR: No matching distribution found for pendulum
Reply
#12
(Jul-28-2021, 11:51 PM)tester_V Wrote: t'll be great if I could use "pendulum" module but for some reason,
It's the same problem that you posted in This Thread.
Look at my last answer.
You have to fix so pip work,i most cases can not use Python without installing stuff.
Reply
#13
I tried to fix pip - unsaccesfull.
when ran :
python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip
Massage:
Requirement already satisfied:

I'm not sure how to use the code you posted for me before:
G:\div_code
λ pip -V
pip 21.1.3 from c:\python39\lib\site-packages\pip (python 3.9)
 
# Use proxy
G:\div_code
λ pip install --proxy="http://41.190.147.158:54018" wmi
Collecting wmi
  Using cached WMI-1.5.1-py2.py3-none-any.whl (28 kB)
Requirement already satisfied: pywin32 in c:\python39\lib\site-packages (from wmi) (300)
Installing collected packages: wmi
Successfully installed wmi-1.5.1
should I save it as a script and run it?

Thank you! and sorry for so many questions!
Reply
#14
(Jul-30-2021, 06:29 AM)tester_V Wrote: should I save it as a script and run it?
No is from command line cmd,i use cmder but command is just the same.
So this is how should work from cmd:
C:\Users\Tom>cd ..

C:\Users>cd ..

# Test python
C:\>python -V
Python 3.9.5

# Test pip
C:\>pip -V
pip 21.1.3 from c:\python39\lib\site-packages\pip (python 3.9)

# Test install
C:\>pip install wmi
Requirement already satisfied: wmi in c:\python39\lib\site-packages (1.5.1)
Requirement already satisfied: pywin32 in c:\python39\lib\site-packages (from wmi) 
So it have to work like this or have to fix it,it's not an option to use Python whiteout pip working.
For new install and test look Python 3.9/3.8 and pip installation under Windows

Using a proxy as posted before is to route and other server to see if work.
If work can be problem on your local network.
C:\>pip install --proxy="http://94.23.172.208:43567" typer-cli
  Downloading typer_cli-0.0.12-py3-none-any.whl (8.8 kB)
  Requirement already satisfied: typer<0.4.0,>=0.3.0 in c:\python39\lib\site-packa
  ges (from typer-cli) (0.3.2)
  Collecting shellingham<2.0.0,>=1.3.2
  Downloading shellingham-1.4.0-py2.py3-none-any.whl (9.4 kB)
  Installing collected packages: shellingham, typer-cli
  Successfully installed shellingham-1.4.0 typer-cli-0.0.12

C:\>
tester_V likes this post
Reply
#15
Good morning!
All three of my computers, (laptop, desktop, and a server) are behind a corporate firewall.
I think that is a problem installing modules,

When I'm trying to use the "proxy" command it errors out with the error:

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0406F298>, 'Connection to 94.23.172.208 timed out. (connect timeout=15)')': /simple/typer-cli/
ERROR: Could not find a version that satisfies the requirement typer-cli (from versions: none)
ERROR: No matching distribution found for typer-cli

Thank you.
Reply
#16
(Jul-30-2021, 05:21 PM)tester_V Wrote: All three of my computers, (laptop, desktop, and a server) are behind a corporate firewall.
Yes that is the problem,using a proxy is a common way to get around this.
Or ask management if the can open for PyPi.
(Jul-30-2021, 05:21 PM)tester_V Wrote: When I'm trying to use the "proxy" command it errors out with the error:
As mention in other Thread so do i in this demo use a Free Proxy List that goes up down all time,
so have to try serval to get one that work.
I have my own proxies but they are payed for an stable,so will of course not post them here.
Reply
#17
I tried the latest X64 Python version same story.
Reply
#18
(Jul-30-2021, 08:18 PM)tester_V Wrote: I tried the latest X64 Python version same story.
Of course it will the same,i did not known information under when i post that suggestion.
(Jul-30-2021, 05:21 PM)tester_V Wrote: All three of my computers, (laptop, desktop, and a server) are behind a corporate firewall.
So a proxy is a common solution for this,or using your own network not the corporate network when install stuff.
As mention ask if you can use Python and open for PyPi.
Work online like eg colab or eg Anaconda/Miniconda build you own environment with needed stuff.
AWS Cloud9(not free) if want full environment in browser.
Reply
#19
I see.
Thank you again!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020