Discussion:
[conda] Installing pymogo from Jupyter Notebook
Peter Lucas
2018-04-30 05:54:36 UTC
Permalink
Afternoon 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

I'm getting the following error:

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 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/fb0a868b-5c29-4b55-87a6-c1ad6c17fc3e%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-04-30 05:56:41 UTC
Permalink
Post by Peter Lucas
Afternoon All,
We have decided to switch to Mongo Db to store our data.
I wonder if mongo's reputation for storing data has improved?
Post by Peter Lucas
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
You need to do this from the shell in which you would normally launch
jupyter, not from within a cell in the notebook.

cheers,

Chris
--
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/96c6b681-2d42-93fe-98f4-abaa3861586d%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Peter Lucas
2018-04-30 06:23:59 UTC
Permalink
Hi Chris,

Same error in the console

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit
(Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
Post by Peter Lucas
Post by Peter Lucas
conda install -c anaconda pymongo
File "<stdin>", line 1
conda install -c anaconda pymongo
^
SyntaxError: invalid syntax
Peter
Post by Peter Lucas
Afternoon 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 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/1eb3da43-8fb7-4037-bc36-ca4ee11c7ec1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-04-30 06:52:09 UTC
Permalink
Peter,

I said shell, not console. How are you starting Jupyter and how did you
install it?

cheers,

Chris
Post by Peter Lucas
Hi Chris,
Same error in the console
Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 17:26:49) [MSC v.1900 32
bit (Intel)]
 on win32
Type "help", "copyright", "credits" or "license" for more information.
Post by Peter Lucas
conda install -c anaconda pymongo
  File "<stdin>", line 1
    conda install -c anaconda pymongo
                ^
SyntaxError: invalid syntax
Peter
Afternoon 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
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/1eb3da43-8fb7-4037-bc36-ca4ee11c7ec1%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/1eb3da43-8fb7-4037-bc36-ca4ee11c7ec1%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 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/ce4d79c0-c8b0-5513-a620-48b43829006a%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Peter Lucas
2018-04-30 07:04:50 UTC
Permalink
Jupyter is started from Anaconda. When I referred to console I refer to
this exe:
C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\python.exe

Peter
Post by Peter Lucas
Afternoon 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 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/7148fa1c-7962-4797-94c9-8d294542cf6a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-04-30 07:10:00 UTC
Permalink
There 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
Post by Peter Lucas
Jupyter is started from Anaconda. When I referred to console I refer
C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\python.exe
Peter
Afternoon 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
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 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/18717f7e-50d5-2f2c-0755-3c034ddea280%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Peter Lucas
2018-04-30 07:18:18 UTC
Permalink
I didn't see any option in the Anaconda UI. But there is an option under
the Python menu for IDLE which launches a shell (see attachment):

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
There 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 Lucas
Afternoon 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 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/bf58c4f8-70d7-4721-b2e9-a0c826b5dc4b%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-04-30 07:22:39 UTC
Permalink
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
Post by Peter Lucas
I didn't see any option in the Anaconda UI. But there is an option
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
There 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
Post by Peter Lucas
Jupyter is started from Anaconda. When I referred to console I
C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\python.exe
Peter
Afternoon 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,
<javascript:>.
Visit this group at
https://groups.google.com/a/continuum.io/group/conda/
<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
<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
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 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/05bb5704-7052-2518-e157-c94c60781e99%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Matthieu Dartiailh
2018-04-30 07:38:20 UTC
Permalink
Hi 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
Post by Chris Withers
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
Post by Peter Lucas
I didn't see any option in the Anaconda UI. But there is an option
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
There 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
Post by Peter Lucas
Jupyter is started from Anaconda. When I referred to console I
C:\Users\pelucas\AppData\Local\Programs\Python\Python36-32\python.exe
Peter
Afternoon 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
<javascript:>.
Visit this group at
https://groups.google.com/a/continuum.io/group/conda/
<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
<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,
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
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/5dd029d9-beca-cd57-b0d2-284aeb3065e5%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Peter Lucas
2018-04-30 07:44:53 UTC
Permalink
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 Dartiailh
Hi 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 Withers
There 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 Lucas
Afternoon 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.
Peter Lucas
2018-04-30 08:04:32 UTC
Permalink
Looks like it's a no go from Infra : ). Is there somewhere I can mannually
download and install?

Peter
Post by Peter Lucas
Hi Chris, Matthieu,
I found both options. Looks to a firewall issue. I may need to chat to the
Network Team
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',
/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)'))",),)
(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 Dartiailh
Hi 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 Withers
There 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 Lucas
Afternoon 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
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/225b3898-2b00-42d9-bd61-81aec1634466%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...