Hi Chris, Matthieu,
I found both options. Looks to a firewall issue. I may need to chat to the
Network Team
Anaconda:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
<https://repo.continuum.io/pkgs/main/win-64/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your
way.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io',
port=443): Max retries exceeded with url:
/pkgs/main/win-64/repodata.json.bz2 (Caused by
ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at
0x00000000053B32E8>, 'Connection to repo.continuum.io timed out. (connect
timeout=9.15)'))",),)
Anaconda Shell:
(C:\Users\pelucas\AppData\Local\Continuum\anaconda3)
C:\Users\pelucas\Documents>
conda install -c anaconda pymongo
Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
<https://conda.anaconda.org/a
naconda/win-64/repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your
way.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org',
por
t=443): Max retries exceeded with url: /anaconda/win-64/repodata.json
(Caused by
ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at
0x000
0000005391F60>, 'Connection to conda.anaconda.org timed out. (connect
timeout=9.
15)'))",),)
Peter
Post by Matthieu DartiailhHi Peter,
Alternatively from Anaconda Navigator you can install pymongo by going to
the Environment tab and then searching for pymongo in the packages not yet
installed (drop down menu at the top), marking it for installation and
clicking apply.
Best,
Matthieu
Peter,
This is tricky, but you need to stop trying to type shell commands into
Python REPLs (anything with a >>> won't work here).
The reason you keep getting SyntaxErrors is because 'conda install -c
anaconda pymongo' is not python source code.
Idle, IPython and Jupyter are all Python REPLs and will only understand
Python source code.
You need an operating system shell, on windows that's cmd.exe, but you
also need it set up with the correct anaconda paths.
In the Anaconda section off the Windows start menu there will be something
about "Anaconda Shell" or similar that has a little black square next to it.
If that's not possible, I can only suggest finding a local Windows support
person to help you...
good luck!
Chris
I didn't see any option in the Anaconda UI. But there is an option under
C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\pythonw.exe
"C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\Lib\idlelib\idle.pyw"
Whwn I run various commands there, issue still arises.
Peter
Post by Chris WithersThere should be an option along the lines of "start anaconda shell" in
the Anaconda menu, you need to be a in a DOS box (cmd.exe) started that
way, then you can type the conda install command...
Chris
Jupyter is started from Anaconda. When I referred to console I refer to
C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\python.exe
Peter
Post by Peter LucasAfternoon All,
We have decided to switch to Mongo Db to store our data. I would like to
set my python scripts to pull data from the Mongo Db istead of pd.read_csv.
I'd like to install the library and tried conda install -c anaconda pymongo
File "<ipython-input-6-9a39d6ac74c1>", line 1 conda install -c anaconda pymongo ^SyntaxError: invalid syntax
Any ideas?
Peter
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/
.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/7148fa1c-7962-4797-94c9-8d294542cf6a%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/7148fa1c-7962-4797-94c9-8d294542cf6a%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout
.
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/bf58c4f8-70d7-4721-b2e9-a0c826b5dc4b%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/bf58c4f8-70d7-4721-b2e9-a0c826b5dc4b%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/05bb5704-7052-2518-e157-c94c60781e99%40withers.org
<https://groups.google.com/a/continuum.io/d/msgid/conda/05bb5704-7052-2518-e157-c94c60781e99%40withers.org?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/0ab69b8e-871e-49d6-a928-17fbad736c9f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.