Problems with python environments and packages in a conda managed machine

Robert Alexander

I am trying to learn MongoEngine, MongoDB from a python Flask environment

I have a python 3.8 environment and when I issue

conda install -c blaze flask-mongoengine

I get an error:

Specifications:

  • flask-mongoengine -> python[version='2.7.|3.4.']

Your python: python=3.8

so I tried creating and activating a Python 3.4 environment:

conda create -n uav python=3.4 -c conda-forge
conda activate uav
(uav) bob@rja15 uav log % python --version
Python 3.4.5
(uav) bob@rja15 uav log % conda install -c blaze flask-mongoengine

but get a different error:

Specifications:

  • flask-mongoengine -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.4

I am lost. Thanks for any help.

dariober

This seems to work for me with conda 4.8.3 and mamba 0.4.3, Ubuntu 18.04.

I know nothing about flask-mongoengine but it seems the recipe here hasn't been updated for 5 years and it doesn't seem very popular.

conda create -n tmp-db
conda activate tmp-db
mamba install flask-mongoengine
mamba install -c blaze flask-mongoengine

conda list
# packages in environment at /home/dario/miniconda3/envs/tmp-db:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
ca-certificates           2020.10.14                    0  
certifi                   2017.1.23                py34_0    conda-forge
click                     7.1.2              pyh9f0ad1d_0    conda-forge
flask                     1.1.2              pyh9f0ad1d_0    conda-forge
flask-mongoengine         0.7.1                    py34_0    blaze
flask-wtf                 0.14.3                     py_0    conda-forge
itsdangerous              1.1.0                      py_0    conda-forge
jinja2                    2.11.2             pyh9f0ad1d_0    conda-forge
libgcc-ng                 9.3.0               h5dbcf3e_17    conda-forge
libgomp                   9.3.0               h5dbcf3e_17    conda-forge
markupsafe                1.0                      py34_0    conda-forge
mongoengine               0.16.3                     py_1    conda-forge
ncurses                   5.9                          10    conda-forge
openssl                   1.0.2u               h516909a_0    conda-forge
pip                       20.2.4                     py_0    conda-forge
pymongo                   3.2.2                    py34_0    conda-forge
python                    3.4.5                         2    conda-forge
readline                  6.2                           0    conda-forge
setuptools                32.3.1                   py34_0    conda-forge
six                       1.15.0             pyh9f0ad1d_0    conda-forge
sqlite                    3.13.0                        1    conda-forge
tk                        8.5.19                        2    conda-forge
werkzeug                  1.0.1              pyh9f0ad1d_0    conda-forge
wheel                     0.35.1             pyh9f0ad1d_0    conda-forge
wtforms                   2.3.3                      py_0  
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Anaconda 4.7.5 - Warning about conda-build <3.18.3 and issues with python packages

From Java

Should conda, or conda-forge be used for Python environments?

From Java

Specific reasons to favor pip vs. conda when installing Python packages

From Dev

Conda environments and .BAT files

From Dev

Repositories of conda recipes and packages

From Dev

conda creating environments. Parameter choice

From Dev

Are environments in conda a wrapper for pyenv?

From Dev

Building packages with conda and python3k

From Dev

Having problems deploying project environments in MobileFirst 7

From Dev

Seed options: Using different packages for machine learning in Python

From Dev

Conda remove all environments (except root)

From Dev

Get managed servers of a machine with wlst

From Dev

conda packages with version name of 'custom'

From Dev

How to share conda environments across platforms

From Dev

Will I have problems installing multiple desktop environments?

From Dev

Should conda, or conda-forge be used for Python environments?

From Dev

How to share conda environments across platforms

From Dev

Deploy a Python (Dash) app to Heroku using Conda environments (instead of virtualenv)

From Dev

Will I have problems installing multiple desktop environments?

From Dev

Having problems deploying project environments in MobileFirst 7

From Dev

problems with packages

From Dev

remove cached (conda) environments in vscode for python

From Dev

Problems with Packages, modules and functions

From Dev

Installing packages in conda environments fails when conda attempts to uninstall a root package

From Dev

What are the pre installed packages in the Google Cloud Dataflow worker Python runtime environments?

From Dev

Require Jupyter Password across all Conda Environments

From Dev

Python doesn't find packages that are installed with Conda

From Dev

How to install and use mmlspark on a local machine with Conda Python?

From Dev

Microsoft SQL Server 2017 and conda environments

Related Related

  1. 1

    Anaconda 4.7.5 - Warning about conda-build <3.18.3 and issues with python packages

  2. 2

    Should conda, or conda-forge be used for Python environments?

  3. 3

    Specific reasons to favor pip vs. conda when installing Python packages

  4. 4

    Conda environments and .BAT files

  5. 5

    Repositories of conda recipes and packages

  6. 6

    conda creating environments. Parameter choice

  7. 7

    Are environments in conda a wrapper for pyenv?

  8. 8

    Building packages with conda and python3k

  9. 9

    Having problems deploying project environments in MobileFirst 7

  10. 10

    Seed options: Using different packages for machine learning in Python

  11. 11

    Conda remove all environments (except root)

  12. 12

    Get managed servers of a machine with wlst

  13. 13

    conda packages with version name of 'custom'

  14. 14

    How to share conda environments across platforms

  15. 15

    Will I have problems installing multiple desktop environments?

  16. 16

    Should conda, or conda-forge be used for Python environments?

  17. 17

    How to share conda environments across platforms

  18. 18

    Deploy a Python (Dash) app to Heroku using Conda environments (instead of virtualenv)

  19. 19

    Will I have problems installing multiple desktop environments?

  20. 20

    Having problems deploying project environments in MobileFirst 7

  21. 21

    problems with packages

  22. 22

    remove cached (conda) environments in vscode for python

  23. 23

    Problems with Packages, modules and functions

  24. 24

    Installing packages in conda environments fails when conda attempts to uninstall a root package

  25. 25

    What are the pre installed packages in the Google Cloud Dataflow worker Python runtime environments?

  26. 26

    Require Jupyter Password across all Conda Environments

  27. 27

    Python doesn't find packages that are installed with Conda

  28. 28

    How to install and use mmlspark on a local machine with Conda Python?

  29. 29

    Microsoft SQL Server 2017 and conda environments

HotTag

Archive