How to install/update to sympy 1.4 under in Latest Anancoda 2019.03? - anaconda

Update
Thanks for the hint by #cel below, the command to use is
>sudo conda install sympy=1.4
## Package Plan ##
environment location: /opt/anaconda
added / updated specs:
- sympy=1.4
The following packages will be downloaded:
package | build
---------------------------|-----------------
sympy-1.4 | py37_0 9.7 MB
------------------------------------------------------------
Total: 9.7 MB
The following packages will be REMOVED:
anaconda-2019.03-py37_0
The following packages will be UPDATED:
sympy 1.3-py37_0 --> 1.4-py37_0
Proceed ([y]/n)? y
Verified OK after installation:
>python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sympy
>>> sympy.__version__
'1.4'
>>>
I have no idea why other commands did not work. But the above works.
Original question
I am using Linux Manjaro 64 bit. Installed latest Anancoda
>which python
/opt/anaconda/bin/python
>conda list anaconda
# packages in environment at /opt/anaconda:
#
# Name Version Build Channel
anaconda 2019.03 py37_0
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.7 py37_0
anaconda-project 0.8.2 py37_0
The problem is that it comes with sympy 1.3, while latest sympy is 1.4 accoding to
https://github.com/sympy/sympy/releases
sympy 1.4 has been out 3 weeks ago.
Now doing
>sudo conda update sympy
Does not update. It says
## Package Plan ##
environment location: /opt/anaconda
added / updated specs:
- sympy
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2019.1.23 | 0 126 KB
certifi-2019.3.9 | py37_0 155 KB
conda-4.6.14 | py37_0 2.1 MB
openssl-1.1.1b | h7b6447c_1 4.0 MB
sympy-1.3 | py37_0 9.5 MB
------------------------------------------------------------
Total: 15.9 MB
But according to https://anaconda.org/anaconda/sympy it says sympy 1.4 is available
I also tried the command above, and it does not update sympy
>sudo conda install -c anaconda sympy
## Package Plan ##
environment location: /opt/anaconda
added / updated specs:
- sympy
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2019.1.23 | 0 126 KB anaconda
certifi-2019.3.9 | py37_0 155 KB anaconda
conda-4.6.14 | py37_0 2.1 MB anaconda
openssl-1.1.1b | h7b6447c_1 4.0 MB anaconda
sympy-1.3 | py37_0 9.5 MB anaconda
------------------------------------------------------------
Total: 15.9 MB
Any one knows why sympy is not being updated? Anything else to try? I could download the tar file from sympy 1.4, but I do not know what to do after that in order to install it in Anancoda.

When conda update does not want to update a package, you can ask conda explicity to install a specific version: conda install sympy=1.4.

Related

Can not import correctly Seaborn into my IBM Watson-Studio

I am trying to import seaborn in my IBM cloud (watson) on windows for my final assignment, but somehow it gives me an error. I am trying the following code to import seaborn:
#notice: installing seaborn might takes a few minutes\
!conda install -c anaconda seaborn -y
But then happens this: Please I need help to solve the issue
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done
Package Plan
environment location: /opt/conda/envs/Python-3.7-main
added / updated specs:
- seaborn
The following packages will be downloaded:
package | build
---------------------------|-----------------
argon2-cffi-20.1.0 | py37h7b6447c_1 49 KB anaconda
defusedxml-0.6.0 | py_0 23 KB anaconda
entrypoints-0.3 | py37_0 12 KB anaconda
fontconfig-2.13.0 | h9420a91_0 291 KB anaconda
icu-58.2 | he6710b0_3 22.7 MB anaconda
jupyter_client-6.1.7 | py_0 76 KB anaconda
libpng-1.6.37 | hbc83047_0 364 KB anaconda
libtiff-4.1.0 | h2733197_1 607 KB anaconda
libuuid-1.0.3 | h1bed415_2 16 KB anaconda
libxcb-1.14 | h7b6447c_0 610 KB anaconda
libxml2-2.9.10 | hb55368b_3 1.3 MB anaconda
lz4-c-1.9.2 | heb0550a_3 203 KB anaconda
markupsafe-1.1.1 | py37h14c3975_1 26 KB anaconda
mistune-0.8.4 |py37h14c3975_1001 53 KB anaconda
ncurses-6.2 | he6710b0_1 1.1 MB anaconda
packaging-20.4 | py_0 35 KB anaconda
pandocfilters-1.4.2 | py37_1 13 KB anaconda
pyjwt-1.7.1 | py37_0 32 KB anaconda
pyparsing-2.4.7 | py_0 64 KB anaconda
webencodings-0.5.1 | py37_1 19 KB anaconda
------------------------------------------------------------
Total: 27.5 MB
Downloading and Extracting Packages
libxml2-2.9.10 | 1.3 MB | ###############################6 | 86% WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/conda/pkgs/libxml2-2.9.10-hb55368b_3/bin/xmllint. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/conda/pkgs/libxml2-2.9.10-hb55368b_3/bin/xml2-config. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/conda/pkgs/libx
If you the notebook is created using the default runtime as shown below, then Seaborn is installed by default.
Run the below command to see Seaborn in the list of packages installed.
!pip list
If you don't see Seaborn in the list, try installing with the below command
!pip install seaborn
If you still see the error, update your question with the region in which you have your project with notebook created and also screenshots of the environment + error helps

(Windows 10) Miniconda Pyopencl - ImportError: DLL load failed while importing _cl: The specified procedure could not be found

I've been working with pyopencl on my Macbook. I installed miniconda and installed pyopencl from there by using these instructions.
On my Mac everything works fine, I can run a small example program and it works.
I then tried to use pyopencl on my Windows 10 desktop PC as that has a proper GPU (Nvidia GeForce GTX 1080TI) but I can't seem to get it it work with the same example program.
Like with the Mac I followed these instructions and installed miniconda and then pyopencl.
However when I run my example program I get the following error:
C:\Users\Grant\Desktop\Exercises-Solutions-1.2.1\Exercises\Exercise03\Python>python vadd.py
Traceback (most recent call last):
File "vadd.py", line 13, in <module>
import pyopencl as cl
File "C:\ProgramData\Miniconda3\lib\site-packages\pyopencl\__init__.py", line 29, in <module>
import pyopencl.cltypes # noqa: F401
File "C:\ProgramData\Miniconda3\lib\site-packages\pyopencl\cltypes.py", line 22, in <module>
from pyopencl.tools import get_or_register_dtype
File "C:\ProgramData\Miniconda3\lib\site-packages\pyopencl\tools.py", line 37, in <module>
from pyopencl._cl import bitlog2 # noqa: F401
ImportError: DLL load failed while importing _cl: The specified procedure could not be found.
This is what I have installed via conda:
C:\Users\Grant\Desktop\Exercises-Solutions-1.2.1\Exercises\Exercise03\Python>conda list
# packages in environment at C:\ProgramData\Miniconda3:
#
# Name Version Build Channel
appdirs 1.4.3 py_1 conda-forge
ca-certificates 2020.6.20 hecda079_0 conda-forge
certifi 2020.6.20 py38h9bdc248_2 conda-forge
cffi 1.14.0 py38h7a1dbc1_0
chardet 3.0.4 py38_1003
conda 4.8.5 py38h9bdc248_2 conda-forge
conda-package-handling 1.6.1 py38h62dcd97_0
console_shortcut 0.1.1 4
cryptography 2.9.2 py38h7a1dbc1_0
decorator 4.4.2 py_0 conda-forge
idna 2.9 py_1
intel-openmp 2020.1 216
khronos-opencl-icd-loader 2020.06.16 h62dcd97_1 conda-forge
libblas 3.8.0 16_mkl conda-forge
libcblas 3.8.0 16_mkl conda-forge
liblapack 3.8.0 16_mkl conda-forge
mako 1.1.3 pyh9f0ad1d_0 conda-forge
markupsafe 1.1.1 py38hab1e662_2 conda-forge
menuinst 1.4.16 py38he774522_0
mkl 2020.1 216
numpy 1.19.2 py38hdf1ac2f_1 conda-forge
openssl 1.1.1h he774522_0 conda-forge
pip 20.0.2 py38_3
powershell_shortcut 0.0.1 3
pycosat 0.6.3 py38he774522_0
pycparser 2.20 py_0
pyopencl 2020.2.2 py38hfd46600_1 conda-forge
pyopenssl 19.1.0 py38_0
pysocks 1.7.1 py38_0
python 3.8.3 he1778fa_0
python_abi 3.8 1_cp38 conda-forge
pytools 2020.4 pyh9f0ad1d_0 conda-forge
pywin32 227 py38he774522_1
requests 2.23.0 py38_0
ruamel_yaml 0.15.87 py38he774522_0
setuptools 46.4.0 py38_0
six 1.14.0 py38_0
sqlite 3.31.1 h2a8f88b_1
tqdm 4.46.0 py_0
urllib3 1.25.8 py38_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_1
wheel 0.34.2 py38_0
win_inet_pton 1.1.0 py38_0
wincertstore 0.2 py38_0
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_4
I'm not sure If I'm missing something but it can't seem to find the DLL, so with that I tried ensuring my GPU drivers were up to date, that didn't work so then I tried to install the Nvidia CUDA toolkit. Once again this has no affect and the problem persists.
The only possible clue I have is that in the miniconda installation directory on my Macbook there is a OpenCl folder followed by a vendor folder that has an apple.icd file in.
miniconda3/etc/OpenCL/vendors/apple.icd.
However my miniconda install directory on my Windows PC seems to be missing that OpenCL folder, and by virtue the vendors folder and .icd file.
C:\ProgramData\Miniconda3\etc>dir
Volume in drive C has no label.
Volume Serial Number is 4E38-45B0
Directory of C:\ProgramData\Miniconda3\etc
12/10/2020 17:54 <DIR> .
12/10/2020 17:54 <DIR> ..
12/10/2020 17:54 <DIR> fish
12/10/2020 18:04 <DIR> profile.d
0 File(s) 0 bytes
4 Dir(s) 37,407,539,200 bytes free
This to me points to the cause of the issue, but I'm not sure. And even if it is I don't know what I'd need to do to produce this .icd file.
Any help would be appreciated.

Why is conda's remove not symmetric with conda's install?

Why do seemingly simple/atomic conda installs result in fairly complex uninstalls??
I recently tried the following conda install
$ conda install -c conda-forge imageio-ffmpeg
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.7.12
latest version: 4.8.1
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /home/smgutstein/anaconda2/envs/dnn_py3
added / updated specs:
- imageio-ffmpeg
The following packages will be downloaded:
package | build
---------------------------|-----------------
imageio-ffmpeg-0.3.0 | py_0 14 KB conda-forge
------------------------------------------------------------
Total: 14 KB
The following NEW packages will be INSTALLED:
imageio-ffmpeg conda-forge/noarch::imageio-ffmpeg-0.3.0-py_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
imageio-ffmpeg-0.3.0 | 14 KB | ################################################################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
This seemed like a fairly atomic install.
However, when I tried to uninstall, things became much more complicated:
$ conda uninstall imageio-ffmpeg
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.7.12
latest version: 4.8.1
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /home/smgutstein/anaconda2/envs/dnn_py3
removed specs:
- imageio-ffmpeg
The following packages will be downloaded:
package | build
---------------------------|-----------------
absl-py-0.8.1 | py36_0 164 KB
anaconda-client-1.7.2 | py36_0 147 KB
asn1crypto-1.3.0 | py36_0 164 KB
astor-0.8.0 | py36_0 46 KB
backcall-0.1.0 | py36_0 20 KB
backports-1.0 | py_2 139 KB
bleach-3.1.0 | py36_0 221 KB
c-ares-1.15.0 | h7b6447c_1001 89 KB
ca-certificates-2019.11.27 | 0 124 KB
certifi-2019.11.28 | py36_0 153 KB
chardet-3.0.4 | py36_1003 180 KB
clyent-1.2.2 | py36_1 19 KB
cryptography-2.8 | py36h1ba5d50_0 552 KB
cudnn-7.6.5 | cuda10.0_0 165.0 MB
cycler-0.10.0 | py36_0 13 KB
cytoolz-0.10.1 | py36h7b6447c_0 377 KB
dask-core-2.9.1 | py_0 556 KB
defusedxml-0.6.0 | py_0 23 KB
entrypoints-0.3 | py36_0 12 KB
gast-0.3.2 | py_0 13 KB
giflib-5.1.4 | h14c3975_1 68 KB
idna-2.8 | py36_0 112 KB
imageio-2.6.1 | py36_0 3.2 MB
importlib_metadata-1.3.0 | py36_0 46 KB
ipykernel-5.1.3 | py36h39e3cac_1 173 KB
ipython-7.11.1 | py36h39e3cac_0 988 KB
ipython_genutils-0.2.0 | py36_0 39 KB
jasper-1.900.1 | hd497a04_4 198 KB
jedi-0.15.2 | py36_0 738 KB
joblib-0.14.1 | py_0 201 KB
jsonschema-3.2.0 | py36_0 95 KB
jupyter_client-5.3.4 | py36_0 141 KB
jupyter_console-6.0.0 | py36_0 37 KB
jupyter_core-4.6.1 | py36_0 70 KB
kiwisolver-1.1.0 | py36he6710b0_0 82 KB
lame-3.100 | h7b6447c_0 323 KB
libiconv-1.15 | h63c8f33_5 721 KB
libprotobuf-3.11.2 | hd408876_0 2.9 MB
libsodium-1.0.16 | h1bed415_0 214 KB
libwebp-1.0.1 | h8e7db2f_0 471 KB
markupsafe-1.1.1 | py36h7b6447c_0 29 KB
matplotlib-3.1.1 | py36h5429711_0 5.0 MB
mistune-0.8.4 | py36h7b6447c_0 55 KB
more-itertools-8.0.2 | py_0 39 KB
nbconvert-5.6.1 | py36_0 460 KB
nbformat-4.4.0 | py36_0 128 KB
networkx-2.4 | py_0 1.2 MB
notebook-6.0.2 | py36_0 4.0 MB
numpy-1.17.4 | py36hc1035e2_0 5 KB
numpy-base-1.17.4 | py36hde5b4d6_0 4.2 MB
olefile-0.46 | py36_0 48 KB
openh264-1.8.0 | hd408876_0 659 KB
packaging-20.0 | py_0 35 KB
pandoc-2.2.3.2 | 0 14.0 MB
pandocfilters-1.4.2 | py36_1 13 KB
parso-0.5.2 | py_0 69 KB
pexpect-4.7.0 | py36_0 80 KB
pickleshare-0.7.5 | py36_0 13 KB
pillow-7.0.0 | py36hb39fc2d_0 600 KB
pluggy-0.13.1 | py36_0 33 KB
prometheus_client-0.7.1 | py_0 42 KB
prompt_toolkit-2.0.10 | py_0 227 KB
protobuf-3.11.2 | py36he6710b0_0 635 KB
psutil-5.6.7 | py36h7b6447c_0 318 KB
ptyprocess-0.6.0 | py36_0 23 KB
py-1.8.1 | py_0 71 KB
pygments-2.5.2 | py_0 672 KB
pyopenssl-19.1.0 | py36_0 87 KB
pyparsing-2.4.6 | py_0 64 KB
pyrsistent-0.15.6 | py36h7b6447c_0 93 KB
pysocks-1.7.1 | py36_0 30 KB
pytest-5.3.2 | py36_0 365 KB
pytest-runner-5.2 | py_0 13 KB
python-utils-2.3.0 | py36_0 18 KB
pywavelets-1.1.1 | py36h7b6447c_0 3.5 MB
pyyaml-5.2 | py36h7b6447c_0 180 KB
pyzmq-18.1.0 | py36he6710b0_0 453 KB
qtconsole-4.6.0 | py_1 97 KB
requests-2.22.0 | py36_1 92 KB
scipy-1.3.2 | py36h7c811a0_0 14.0 MB
send2trash-1.5.0 | py36_0 16 KB
setuptools-44.0.0 | py36_0 510 KB
terminado-0.8.3 | py36_0 26 KB
toolz-0.10.0 | py_0 50 KB
tornado-6.0.3 | py36h7b6447c_0 583 KB
tqdm-4.41.1 | py_0 54 KB
traitlets-4.3.3 | py36_0 140 KB
urllib3-1.25.7 | py36_0 169 KB
wcwidth-0.1.7 | py36_0 24 KB
webencodings-0.5.1 | py36_1 19 KB
werkzeug-0.16.0 | py_0 255 KB
widgetsnbextension-3.5.1 | py36_0 862 KB
x264-1!152.20180806 | h7b6447c_0 631 KB
zeromq-4.3.1 | he6710b0_3 496 KB
------------------------------------------------------------
Total: 233.8 MB
The following packages will be REMOVED:
atomicwrites-1.3.0-py_0
gettext-0.19.8.1-hc5be6a0_1002
imageio-ffmpeg-0.3.0-py_0
lz4-c-1.8.3-he1b5a44_1001
pthread-stubs-0.4-h14c3975_1001
xorg-libxau-1.0.9-h14c3975_0
xorg-libxdmcp-1.1.3-h516909a_0
The following packages will be UPDATED:
absl-py 0.7.1-py36_0 --> 0.8.1-py36_0
asn1crypto anaconda::asn1crypto-1.0.1-py36_0 --> pkgs/main::asn1crypto-1.3.0-py36_0
astor 0.7.1-py36_0 --> 0.8.0-py36_0
attrs anaconda/linux-64::attrs-19.1.0-py36_1 --> pkgs/main/noarch::attrs-19.3.0-py_0
c-ares 1.15.0-h7b6447c_1 --> 1.15.0-h7b6447c_1001
cffi anaconda::cffi-1.12.3-py36h2e261b9_0 --> pkgs/main::cffi-1.13.2-py36h2e261b9_0
cloudpickle anaconda::cloudpickle-1.2.1-py_0 --> pkgs/main::cloudpickle-1.2.2-py_0
cryptography anaconda::cryptography-2.7-py36h1ba5d~ --> pkgs/main::cryptography-2.8-py36h1ba5d50_0
cudnn 7.6.0-cuda10.0_0 --> 7.6.5-cuda10.0_0
cytoolz anaconda::cytoolz-0.10.0-py36h7b6447c~ --> pkgs/main::cytoolz-0.10.1-py36h7b6447c_0
dask-core anaconda::dask-core-2.1.0-py_0 --> pkgs/main::dask-core-2.9.1-py_0
dbus conda-forge::dbus-1.13.6-he372182_0 --> pkgs/main::dbus-1.13.12-h746ee38_0
decorator anaconda/linux-64::decorator-4.4.0-py~ --> pkgs/main/noarch::decorator-4.4.1-py_0
expat conda-forge::expat-2.2.5-he1b5a44_1003 --> pkgs/main::expat-2.2.6-he6710b0_0
gast pkgs/main/linux-64::gast-0.2.2-py36_0 --> pkgs/main/noarch::gast-0.3.2-py_0
glib conda-forge::glib-2.58.3-h6f030ca_1002 --> pkgs/main::glib-2.63.1-h5a9c865_0
imageio anaconda::imageio-2.5.0-py36_0 --> pkgs/main::imageio-2.6.1-py36_0
importlib_metadata conda-forge::importlib_metadata-0.23-~ --> pkgs/main::importlib_metadata-1.3.0-py36_0
ipykernel anaconda::ipykernel-5.1.1-py36h39e3ca~ --> pkgs/main::ipykernel-5.1.3-py36h39e3cac_1
ipython anaconda::ipython-7.6.1-py36h39e3cac_0 --> pkgs/main::ipython-7.11.1-py36h39e3cac_0
ipywidgets anaconda::ipywidgets-7.5.0-py_0 --> pkgs/main::ipywidgets-7.5.1-py_0
jedi anaconda::jedi-0.13.3-py36_0 --> pkgs/main::jedi-0.15.2-py36_0
jinja2 anaconda/linux-64::jinja2-2.10.1-py36~ --> pkgs/main/noarch::jinja2-2.10.3-py_0
joblib anaconda::joblib-0.14.0-py_0 --> pkgs/main::joblib-0.14.1-py_0
jsonschema anaconda::jsonschema-3.0.1-py36_0 --> pkgs/main::jsonschema-3.2.0-py36_0
jupyter_client anaconda/noarch::jupyter_client-5.3.1~ --> pkgs/main/linux-64::jupyter_client-5.3.4-py36_0
jupyter_core anaconda/noarch::jupyter_core-4.5.0-p~ --> pkgs/main/linux-64::jupyter_core-4.6.1-py36_0
libprotobuf 3.8.0-hd408876_0 --> 3.11.2-hd408876_0
libtiff conda-forge::libtiff-4.0.10-h57b8799_~ --> pkgs/main::libtiff-4.1.0-h2733197_0
matplotlib anaconda::matplotlib-3.1.0-py36h54297~ --> pkgs/main::matplotlib-3.1.1-py36h5429711_0
mkl_fft 1.0.12-py36ha843d7b_0 --> 1.0.15-py36ha843d7b_0
mkl_random 1.0.2-py36hd81dba3_0 --> 1.1.0-py36hd6b4f25_0
more-itertools conda-forge::more-itertools-7.2.0-py_0 --> pkgs/main::more-itertools-8.0.2-py_0
nbconvert anaconda/noarch::nbconvert-5.5.0-py_0 --> pkgs/main/linux-64::nbconvert-5.6.1-py36_0
networkx anaconda::networkx-2.3-py_0 --> pkgs/main::networkx-2.4-py_0
notebook anaconda::notebook-6.0.0-py36_0 --> pkgs/main::notebook-6.0.2-py36_0
numpy 1.16.4-py36h7e9f1db_0 --> 1.17.4-py36hc1035e2_0
numpy-base 1.16.4-py36hde5b4d6_0 --> 1.17.4-py36hde5b4d6_0
openssl conda-forge::openssl-1.1.1d-h516909a_0 --> pkgs/main::openssl-1.1.1d-h7b6447c_3
packaging pkgs/main/linux-64::packaging-19.0-py~ --> pkgs/main/noarch::packaging-20.0-py_0
parso anaconda::parso-0.5.0-py_0 --> pkgs/main::parso-0.5.2-py_0
pcre conda-forge::pcre-8.41-hf484d3e_1003 --> pkgs/main::pcre-8.43-he6710b0_0
pillow anaconda::pillow-6.1.0-py36h34e0f95_0 --> pkgs/main::pillow-7.0.0-py36hb39fc2d_0
pip 19.1.1-py36_0 --> 19.3.1-py36_0
pluggy conda-forge/noarch::pluggy-0.12.0-py_0 --> pkgs/main/linux-64::pluggy-0.13.1-py36_0
prompt_toolkit anaconda/linux-64::prompt_toolkit-2.0~ --> pkgs/main/noarch::prompt_toolkit-2.0.10-py_0
protobuf 3.8.0-py36he6710b0_0 --> 3.11.2-py36he6710b0_0
psutil anaconda::psutil-5.6.3-py36h7b6447c_0 --> pkgs/main::psutil-5.6.7-py36h7b6447c_0
py conda-forge::py-1.8.0-py_0 --> pkgs/main::py-1.8.1-py_0
pygments anaconda::pygments-2.4.2-py_0 --> pkgs/main::pygments-2.5.2-py_0
pyopenssl anaconda::pyopenssl-19.0.0-py36_0 --> pkgs/main::pyopenssl-19.1.0-py36_0
pyparsing anaconda::pyparsing-2.4.0-py_0 --> pkgs/main::pyparsing-2.4.6-py_0
pyqt anaconda::pyqt-5.9.2-py36h22d08a2_1 --> pkgs/main::pyqt-5.9.2-py36h05f1152_2
pyrsistent anaconda::pyrsistent-0.14.11-py36h7b6~ --> pkgs/main::pyrsistent-0.15.6-py36h7b6447c_0
pytest conda-forge::pytest-5.2.2-py36_0 --> pkgs/main::pytest-5.3.2-py36_0
python-dateutil anaconda/linux-64::python-dateutil-2.~ --> pkgs/main/noarch::python-dateutil-2.8.1-py_0
pytz anaconda::pytz-2019.1-py_0 --> pkgs/main::pytz-2019.3-py_0
pywavelets anaconda::pywavelets-1.0.3-py36hdd077~ --> pkgs/main::pywavelets-1.1.1-py36h7b6447c_0
pyyaml 5.1.1-py36h7b6447c_0 --> 5.2-py36h7b6447c_0
pyzmq anaconda::pyzmq-18.0.0-py36he6710b0_0 --> pkgs/main::pyzmq-18.1.0-py36he6710b0_0
qtconsole anaconda::qtconsole-4.5.2-py_0 --> pkgs/main::qtconsole-4.6.0-py_1
requests anaconda::requests-2.22.0-py36_0 --> pkgs/main::requests-2.22.0-py36_1
scipy 1.2.1-py36h7c811a0_0 --> 1.3.2-py36h7c811a0_0
setuptools 41.0.1-py36_0 --> 44.0.0-py36_0
six 1.12.0-py36_0 --> 1.13.0-py36_0
sqlite 3.28.0-h7b6447c_0 --> 3.30.1-h7b6447c_0
terminado anaconda::terminado-0.8.2-py36_0 --> pkgs/main::terminado-0.8.3-py36_0
testpath anaconda/linux-64::testpath-0.4.2-py3~ --> pkgs/main/noarch::testpath-0.4.4-py_0
traitlets anaconda::traitlets-4.3.2-py36_0 --> pkgs/main::traitlets-4.3.3-py36_0
urllib3 anaconda::urllib3-1.24.2-py36_0 --> pkgs/main::urllib3-1.25.7-py36_0
werkzeug 0.15.4-py_0 --> 0.16.0-py_0
wheel 0.33.4-py36_0 --> 0.33.6-py36_0
widgetsnbextension anaconda::widgetsnbextension-3.5.0-py~ --> pkgs/main::widgetsnbextension-3.5.1-py36_0
The following packages will be SUPERSEDED by a higher-priority channel:
anaconda-client anaconda --> pkgs/main
backcall anaconda --> pkgs/main
backports anaconda --> pkgs/main
bleach anaconda --> pkgs/main
bzip2 conda-forge::bzip2-1.0.8-h516909a_0 --> pkgs/main::bzip2-1.0.8-h7b6447c_0
ca-certificates conda-forge::ca-certificates-2019.11.~ --> pkgs/main::ca-certificates-2019.11.27-0
certifi conda-forge --> pkgs/main
chardet anaconda --> pkgs/main
clyent anaconda --> pkgs/main
cycler anaconda --> pkgs/main
defusedxml anaconda --> pkgs/main
entrypoints anaconda --> pkgs/main
freetype conda-forge::freetype-2.10.0-he983fc9~ --> pkgs/main::freetype-2.9.1-h8a8886c_1
giflib conda-forge::giflib-5.1.9-h516909a_0 --> pkgs/main::giflib-5.1.4-h14c3975_1
gmp conda-forge::gmp-6.1.2-hf484d3e_1000 --> pkgs/main::gmp-6.1.2-h6c8ec71_1
graphite2 conda-forge::graphite2-1.3.13-hf484d3~ --> pkgs/main::graphite2-1.3.13-h23475e2_0
gst-plugins-base conda-forge::gst-plugins-base-1.14.5-~ --> pkgs/main::gst-plugins-base-1.14.0-hbbd80ab_1
gstreamer conda-forge::gstreamer-1.14.5-h36ae1b~ --> pkgs/main::gstreamer-1.14.0-hb453b48_1
icu conda-forge::icu-58.2-hf484d3e_1000 --> pkgs/main::icu-58.2-h9c2bf20_1
idna anaconda --> pkgs/main
ipython_genutils anaconda --> pkgs/main
jasper conda-forge::jasper-1.900.1-h07fcdf6_~ --> pkgs/main::jasper-1.900.1-hd497a04_4
jupyter_console anaconda --> pkgs/main
kiwisolver anaconda --> pkgs/main
lame conda-forge::lame-3.100-h14c3975_1001 --> pkgs/main::lame-3.100-h7b6447c_0
libiconv conda-forge::libiconv-1.15-h516909a_1~ --> pkgs/main::libiconv-1.15-h63c8f33_5
libpng conda-forge::libpng-1.6.37-hed695b0_0 --> pkgs/main::libpng-1.6.37-hbc83047_0
libsodium anaconda --> pkgs/main
libwebp conda-forge::libwebp-1.0.2-h576950b_1 --> pkgs/main::libwebp-1.0.1-h8e7db2f_0
libxcb conda-forge::libxcb-1.13-h14c3975_1002 --> pkgs/main::libxcb-1.13-h1bed415_1
libxml2 conda-forge::libxml2-2.9.9-h13577e0_1 --> pkgs/main::libxml2-2.9.9-hea5a465_1
markupsafe anaconda --> pkgs/main
mistune anaconda --> pkgs/main
mkl-service anaconda --> pkgs/main
nbformat anaconda --> pkgs/main
olefile anaconda --> pkgs/main
openh264 conda-forge::openh264-1.8.0-hdbcaa40_~ --> pkgs/main::openh264-1.8.0-hd408876_0
pandoc anaconda --> pkgs/main
pandocfilters anaconda --> pkgs/main
pexpect anaconda --> pkgs/main
pickleshare anaconda --> pkgs/main
pixman conda-forge::pixman-0.38.0-h516909a_1~ --> pkgs/main::pixman-0.38.0-h7b6447c_0
prometheus_client anaconda --> pkgs/main
ptyprocess anaconda --> pkgs/main
pycparser anaconda --> pkgs/main
pysocks anaconda --> pkgs/main
pytest-runner conda-forge --> pkgs/main
python-utils conda-forge/noarch::python-utils-2.3.~ --> pkgs/main/linux-64::python-utils-2.3.0-py36_0
qt conda-forge::qt-5.9.7-h52cfd70_2 --> pkgs/main::qt-5.9.7-h5867ecd_1
qtpy anaconda --> pkgs/main
send2trash anaconda --> pkgs/main
sip anaconda::sip-4.19.13-py36he6710b0_0 --> pkgs/main::sip-4.19.8-py36hf484d3e_0
toolz anaconda --> pkgs/main
tornado anaconda --> pkgs/main
tqdm conda-forge --> pkgs/main
wcwidth anaconda --> pkgs/main
webencodings anaconda --> pkgs/main
x264 conda-forge::x264-1!152.20180806-h14c~ --> pkgs/main::x264-1!152.20180806-h7b6447c_0
zeromq anaconda --> pkgs/main
zipp conda-forge --> pkgs/main
zstd conda-forge::zstd-1.4.0-h3b9ef0a_0 --> pkgs/main::zstd-1.3.7-h0b5b093_0
Proceed ([y]/n)? n
Why is this? How can I uninstall this version of imageio-ffmpeg without putting my entire environment at risk??
As background, I started trying to install/uninstall this package because I'm trying to use the moviepy package. When I tried to import this package, I got the following error:
RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'
Instead of following it verbatim, I installed imageio-ffmpeg using conda,, but still received the same error. When I Googled my error, I found a suggested solution of
sudo pip3 install imageio==2.4.1
So, now I want to ensure my conda install doesn't supercede my planned pip3 install.
Asymmetry
In the installation part, Conda runs with an implicit --freeze-installed flag, making it a simple install if all the packages are already there.
In the uninstallation, Conda doesn't have an equivalent simple uninstall. Instead, it will attempt to remove the requested package, plus any of its dependencies that were not explicitly installed or required by other packages. Unfortunately, it appears to accomplish this by trying to solve for an environment that consists of only previously requested packages for the env, and this means that all packages that have superseding versions are subject to being updated.
Your particular case appears to be exacerbated by the fact that you have installed from different channels (e.g., conda-forge), but never explicitly defined those channel priorities in your Conda configuration (globally or in the env). So, most of the changes involve switching back to the defaults channel version of packages.
Alternatives
If you're confident that nothing else has changed, then you could use the --force-remove flag.
Another option, if this was the latest thing you've installed, is to try a revision roll-back, but this may also result in drastic changes. That is, check your revision history:
conda list --revisions
And then attempt installing the penultimate one. I'd definitely dry-run it first:
conda install --revision <your_rev> --dry-run
Pip
Don't use Pip unless you absolutely must, and definitely not in your base env. Generally, using Pip with Conda leads to instability (see Using Pip in a Conda Environment). Also, if you do have to use it, don't use sudo or pip3. Instead, activate the env and use simply pip install.
General (Opinionated) Recommendation
Personally, I've found the most stable way to work with Conda is to treat all envs as immutable. That is, avoid using conda (install|update|remove|uninstall) commands. The only exception to this is when first specifying a new project.
Instead of ad hoc installation and removal of packages, write a YAML file and use that to create a new env (conda env create -f my_env.yml) whenever you wish to edit your environment. If you need to add a new package to the env, edit the YAML and recreate the env from scratch.

PySide2.QtWidgets recognized only in Anaconda prompt, but not when executing script

I installed PySide2 from conda-forge into an virtual environment named "Qt4Python".
It works if I directly type in the Anaconda prompt (in python):
import PySide2
from PySide2.QtWidgets import QApplication, QLabel
However, if I write these 2 lines in a script file named test1.py, then also from Anaconda prompt call:
python test1.py
Then it produces:
AttributeError: module 'PySide2' has no attribute 'QtWidgets'
What I was missing here ? Below is the package list of the environment.
(Qt4Python) C:\Users\XuanPhu\Desktop\ST_project>conda list
# packages in environment at C:\Users\XuanPhu\AppData\Local\conda\conda\envs\Qt4Python:
#
# Name Version Build Channel
backcall 0.1.0 py37_0
ca-certificates 2018.11.29 ha4d7672_0 conda-forge
certifi 2018.11.29 py37_1000 conda-forge
colorama 0.4.1 py37_0
decorator 4.3.0 py37_0
icu 58.2 ha66f8fd_1
ipython 7.2.0 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
jedi 0.13.2 py37_0
jpeg 9c hfa6e2cd_1001 conda-forge
libiconv 1.15 hfa6e2cd_1004 conda-forge
libpng 1.6.36 h7602738_1000 conda-forge
libxml2 2.9.8 h9ce36c8_1005 conda-forge
libxslt 1.1.32 heafd4d3_1002 conda-forge
openssl 1.0.2p hfa6e2cd_1002 conda-forge
parso 0.3.1 py37_0
pickleshare 0.7.5 py37_0
pip 18.1 py37_1000 conda-forge
prompt_toolkit 2.0.7 py37_0
pygments 2.3.1 py37_0
pyside2 5.6.0a1 py37h20f30f1_1003 conda-forge
python 3.7.1 hc182675_1000 conda-forge
qt 5.6.2 h2639256_8 conda-forge
setuptools 40.6.3 py37_0 conda-forge
shiboken2 5.12.0 <pip>
six 1.12.0 py37_0
sqlite 3.26.0 hfa6e2cd_1000 conda-forge
traitlets 4.3.2 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.15.26706 h3a45250_0
wcwidth 0.1.7 py37_0
wheel 0.32.3 py37_0 conda-forge
wincertstore 0.2 py37_1002 conda-forge
zlib 1.2.11 h2fa13f4_1004 conda-forge
There could be a version mismatch issue.
I can see you have PySide2 from conda-forge which is really outdated (5.6),
since shiboken2 is using the latest available in pypi (5.12.0),
additionally the qt you have there is not the same for the PySide2 version (5.6.2).
At the moment there is no conda-forge PySide2 package that uses the latest version, which is 5.12.0.
I guess you can either contribute to the project and update the package, or move back and use virtualenv.

conda problem on rp3: "Could not find some dependencies for <package>: blas * openblas"

After updating my RP3 to kernel release/version 4.14.52-v7+/#1123, trying to install or update packages such as pandas, numpy, etc. with conda (arm71, v3.16.0) causes an error:
Error: Could not find some dependencies for <package>: blas * openblas
Installing packages with pip still works fine.
The best option for you will be to use berryconda, as standard conda channels lack the support of ARM-based builds
There are 2 approach to my understanding.
I'm not 100% that it resolves your issue, so any feedback is of interest.
(Some info were found here: Scientific Python for Raspberry Pi)
I have found that some packages are available using apt-get :
sudo apt-get install python-numpy python-scipy python-pandas python-h5py
I realize that it is not strictly conda usage but it can do the trick.
Otherwise, you can use the follwing commands (here exmaple is given with scipy).
Please be aware that you might face compatibility issues between packages or python versions.
Some packages might not be available for ARM
anaconda search -t conda scipy
This gives you something like:
Using binstar api site https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
Name | Version | Package Types | Platforms
------------------------- | ------ | --------------- | ---------------
Alges/scipy | 0.19.1 | conda | linux-64, win-64
: Scientific Library for Python
BioBuilds/scipy | 1.0.0 | conda | linux-ppc64le
... some lines removed ... here is a result with a grep on 'arm'
RaspberryPi/scipy | 0.13.2 | conda | linux-armv6l
alorenzo175/scipy | 0.18.0 | conda | linux-armv7l
compass/scipy | 0.19.0 | conda | linux-armv7l
poppy-project/scipy | 0.17.0 | conda | linux-armv7l
rpi/scipy | 1.0.0 | conda | linux-armv6l, linux-armv7l
then you can do this:
anaconda show rpi/scipy
which gives:
Using binstar api site https://api.anaconda.org
Name: scipy
Summary: Scientific Library for Python
Access: public
Package Types: conda
Versions:
+ 0.18.1
+ 0.19.0
+ 0.19.1
+ 1.0.0
To install this package with conda run:
conda install --channel https://conda.anaconda.org/rpi scipy
Then all you have to do is execute the said command:
conda install --channel https://conda.anaconda.org/rpi scipy
Fetching package metadata: ......
Solving package specifications: .
Error: Unsatisfiable package specifications.
Generating hint:
[ COMPLETE ]|#################################################################################################################################################################################################################| 100%
Hint: the following packages conflict with each other:
- scipy
- python 3.4*
Use 'conda info scipy' etc. to see the dependencies for each package.
Printing some infos:
conda info scipy
Fetching package metadata: ....
scipy 0.16.0 np19py34_1
-----------------------
file name : scipy-0.16.0-np19py34_1.tar.bz2
name : scipy
version : 0.16.0
build number: 1
build string: np19py34_1
channel : defaults
size : 24.4 MB
date : 2015-08-20
license : BSD
md5 : a1f8618171817de092b818a3739ef95c
installed environments:
dependencies:
blas * openblas
numpy 1.9*
openblas 0.2.14
python 3.4*
scipy 0.16.0 np19py27_1
-----------------------
file name : scipy-0.16.0-np19py27_1.tar.bz2
name : scipy
version : 0.16.0
build number: 1
build string: np19py27_1
channel : defaults
size : 25.1 MB
date : 2015-08-20
license : BSD
md5 : bc3882c6770d1dc7e3e5495266002d56
installed environments:
dependencies:
blas * openblas
numpy 1.9*
openblas 0.2.14
python 2.7*

Resources