Miniconda3 fails to install rstudio

0 views
Skip to first unread message

Jesse Wang

unread,
Feb 24, 2018, 9:46:55 AM2/24/18
to conda - Public
Hello,

When I want to install rstudio in Miniconda3 with "conda install rstudio", it always fails.
I get a error message as below.
########################################
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(481): An error occurred while installing package 'defaults::m2w64-ca-certificates-20150426-103'.
UnicodeDecodeError('gb2312', b"'usr\\bin\\mkdir.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n'usr\\bin\\cp.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n'usr\\bin\\cp.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n'usr\\bin\\cp.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n", 22, 23, 'illegal multibyte sequence')
Attempting to roll back.

Rolling back transaction: done

UnicodeDecodeError('gb2312', b"'usr\\bin\\mkdir.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n'usr\\bin\\cp.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n'usr\\bin\\cp.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n'usr\\bin\\cp.exe' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9\xce\xa5~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6\xe6\xaa\xba\xb5{\xa6\xa1\xa9\xce\xa7\xe5\xa6\xb8\xc0\xc9\xa1C\r\n", 22, 23, 'illegal multibyte sequence')
########################################
How should I do to fix this error and install rstudio?

My version and OS:
Miniconda3 4.4.10
Windows 10 Pro 1709 16299.248

Thank you!


Ariel Balter

unread,
Feb 24, 2018, 11:12:03 AM2/24/18
to conda - Public

Just as a test, could you try installing it into it's on environment? Also, I'm assuming that you can install other things without error. Right?

conda create --name rstudioenv
source activate rstudioenv
conda install rstudio

 If that doesn't work, you could try

conda  create  --name  rstudioenv  rstudio

(what is the deal with the code highlighting remove spaces?)

Jesse Wang

unread,
Feb 27, 2018, 10:43:12 AM2/27/18
to conda - Public
Hi Ariel,

Thanks for your reply.
The solution does not work for me.

After googling, I find a workable solution as below.
==========================
Modify Miniconda3\Lib\site-packages\conda\common\compat.py
in "def ensure_text_type(value):" section
return value.decode('utf-8') -> return value.decode('utf-8','ignore')
return value.decode('utf-8') -> return value.decode(encoding,'ignore')
==========================

Now I have already installed R-studio.

Thank you!


Ariel Balter於 2018年2月25日星期日 UTC+8上午12時12分03秒寫道:

Hercial Vitalis

unread,
Mar 1, 2018, 5:53:29 PM3/1/18
to conda - Public
 Try this
conda create rstudio

Ariel Balter

unread,
Mar 1, 2018, 6:49:39 PM3/1/18
to conda - Public
Glad it worked!

Ariel Balter

unread,
Mar 1, 2018, 6:50:50 PM3/1/18
to conda - Public
You might think about posting a bug on the conda github site. Perhaps there is something they need to fix, and your experience will help others.
Reply all
Reply to author
Forward
0 new messages