ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 223 forks source link

version mixed up for gensim #11206

Open yottamoe opened 5 years ago

yottamoe commented 5 years ago

Actual Behavior

Installed gensim: conda install gensim=3.4.0

check : conda list gensim printout: gensim 3.4.0 py36h14c3975_0

while in python:

import gensim gensim.version '3.7.0'

Expected Behavior

import gensim gensim.version '3.4.0'

Steps to Reproduce

$conda create --name test python=3.6.6 $conda install gensim=3.4.0 $python

import gensim gensim.version

Anaconda or Miniconda version:

conda 4.7.11

Operating System:
conda info
``` active environment : evaluation active env location : /home/miniconda3/envs/evaluation shell level : 2 user config file : /home/user/.condarc populated config files : conda version : 4.7.11 conda-build version : not installed python version : 3.7.3.final.0 virtual packages : __cuda=10.0 base environment : /home/miniconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/miniconda3/pkgs /home/user/.conda/pkgs envs directories : /home/miniconda3/envs /home/user/.conda/envs platform : linux-64 user-agent : conda/4.7.11 requests/2.21.0 CPython/3.7.3 Linux/3.10.0-957.27.2.el7.x86_64 centos/7.6.1810 glibc/2.17 UID:GID : 10890:503 netrc file : None offline mode : False ```
conda list --show-channel-urls
``` # packages in environment at /fred/oz085/tiger/miniconda3/envs/evaluation: # # Name Version Build Channel _libgcc_mutex 0.1 main defaults asn1crypto 0.24.0 py36_0 defaults backcall 0.1.0 py36_0 defaults blas 1.0 mkl defaults boto 2.49.0 py36_0 defaults boto3 1.9.199 py_0 defaults botocore 1.12.199 py_0 defaults bz2file 0.98 py36_1 defaults ca-certificates 2019.5.15 1 defaults certifi 2019.6.16 py36_1 defaults cffi 1.12.3 py36h2e261b9_0 defaults chardet 3.0.4 py36_1003 defaults cryptography 2.3.1 py36hc365091_0 defaults cycler 0.10.0 py36_0 defaults dbus 1.13.6 h746ee38_0 defaults decorator 4.4.0 py36_1 defaults docutils 0.14 py36_0 defaults expat 2.2.6 he6710b0_0 defaults fontconfig 2.13.0 h9420a91_0 defaults freetype 2.9.1 h8a8886c_1 defaults gensim 3.4.0 py36h14c3975_0 defaults glib 2.56.2 hd408876_0 defaults gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults icu 58.2 h9c2bf20_1 defaults idna 2.8 py36_0 defaults intel-openmp 2019.4 243 defaults ipython 7.6.1 py36h39e3cac_0 defaults ipython_genutils 0.2.0 py36_0 defaults jedi 0.13.3 py36_0 defaults jmespath 0.9.4 py_0 defaults joblib 0.13.2 py36_0 defaults jpeg 9b h024ee3a_2 defaults kiwisolver 1.1.0 py36he6710b0_0 defaults libedit 3.1.20181209 hc058e9b_0 defaults libffi 3.2.1 hd88cf55_4 defaults libgcc-ng 9.1.0 hdf63c60_0 defaults libgfortran-ng 7.3.0 hdf63c60_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.1.0 hdf63c60_0 defaults libuuid 1.0.3 h1bed415_2 defaults libxcb 1.13 h1bed415_1 defaults libxml2 2.9.9 hea5a465_1 defaults matplotlib 3.1.0 py36h5429711_0 defaults mkl 2019.4 243 defaults mkl-service 2.0.2 py36h7b6447c_0 defaults mkl_fft 1.0.12 py36ha843d7b_0 defaults mkl_random 1.0.2 py36hd81dba3_0 defaults ncurses 6.1 he6710b0_1 defaults numpy 1.16.4 py36h7e9f1db_0 defaults numpy-base 1.16.4 py36hde5b4d6_0 defaults openssl 1.0.2s h7b6447c_0 defaults pandas 0.24.2 py36he6710b0_0 defaults parso 0.5.0 py_0 defaults patsy 0.5.1 py36_0 defaults pcre 8.43 he6710b0_0 defaults pexpect 4.7.0 py36_0 defaults pickleshare 0.7.5 py36_0 defaults pip 19.1.1 py36_0 defaults prompt_toolkit 2.0.9 py36_0 defaults psutil 5.6.3 py36h7b6447c_0 defaults ptyprocess 0.6.0 py36_0 defaults pycparser 2.19 py36_0 defaults pygments 2.4.2 py_0 defaults pyopenssl 19.0.0 py36_0 defaults pyparsing 2.4.0 py_0 defaults pyqt 5.9.2 py36h05f1152_2 defaults pysocks 1.7.0 py36_0 defaults python 3.6.6 h6e4f718_2 defaults python-dateutil 2.8.0 py36_0 defaults pytz 2019.1 py_0 defaults qt 5.9.6 h8703b6f_2 defaults readline 7.0 h7b6447c_5 defaults requests 2.22.0 py36_0 defaults s3transfer 0.2.1 py36_0 defaults scikit-learn 0.21.2 py36hd81dba3_0 defaults scipy 1.3.0 py36h7c811a0_0 defaults seaborn 0.9.0 py36_0 defaults setuptools 41.0.1 py36_0 defaults sip 4.19.8 py36hf484d3e_0 defaults six 1.12.0 py36_0 defaults smart_open 1.8.4 py_0 defaults sqlite 3.29.0 h7b6447c_0 defaults statsmodels 0.10.1 py36hdd07704_0 defaults tk 8.6.8 hbc83047_0 defaults tornado 6.0.3 py36h7b6447c_0 defaults traitlets 4.3.2 py36_0 defaults urllib3 1.24.2 py36_0 defaults wcwidth 0.1.7 py36_0 defaults wheel 0.33.4 py36_0 defaults xz 5.2.4 h14c3975_4 defaults zlib 1.2.11 h7b6447c_3 defaults ```
forrestwaters commented 5 years ago

I'm not able to reproduce this

# conda list gensim
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
gensim                    3.4.0            py36h14c3975_0    defaults
# python
Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gensim
g>>> gensim.__version__
'3.4.0'

Can you provide the output of type -a python in the environment you're experiencing this problem as well as the full output from when you start the python interpreter?

yottamoe commented 5 years ago

$ type -a python python is /home/miniconda3/envs/evaluation/bin/python python is /usr/bin/python

$ py Python 3.6.6 |Anaconda, Inc.| (default, Oct 9 2018, 12:34:16) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

yottamoe commented 5 years ago

I realize gensim=3.7.0 is in the following folders: home/.local/lib/python3.6/site-packages/gensim-3.7.0-py3.6.egg-info home/.local/lib/python3.6/site-packages/gensim/*

They were installed by pip, but didn't show up in the output yml file when I use: conda env export > file.yml

The path "home/.local/lib/" is not in my PATH or PYTHONPATH either.

After removing them, the gensim=3.4.0 can be installed correctly.