Closed semmrich closed 3 years ago
@semmrich I would remove the virtualenv unless you have a good reason to want to keep it. Just remove the folder C:/Users/fuchsdeluxe/AppData/Local/r-miniconda/envs/r-reticulate/
and then run reticulate::py_discover_config("phate")
and let me know what you get.
I removed the folder and rerun:
> reticulate::py_discover_config("phate")
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: C:\Users\fuchsdeluxe\AppData\Local\r-miniconda\envs\r-reticulate
added / updated specs:
- numpy
- python=3.6
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2020.6.20 | py36hd36e781_2 151 KB conda-forge
intel-openmp-2020.3 | h57928b3_311 2.0 MB conda-forge
numpy-1.19.4 | py36hd1b969e_1 4.8 MB conda-forge
python-3.6.11 |h6f26aa1_2_cpython 18.9 MB conda-forge
python_abi-3.6 | 1_cp36m 4 KB conda-forge
setuptools-49.6.0 | py36hd36e781_2 919 KB conda-forge
wincertstore-0.2 |py36h9f0ad1d_1005 15 KB conda-forge
------------------------------------------------------------
Total: 26.8 MB
The following NEW packages will be INSTALLED:
certifi conda-forge/win-64::certifi-2020.6.20-py36hd36e781_2
intel-openmp conda-forge/win-64::intel-openmp-2020.3-h57928b3_311
libblas conda-forge/win-64::libblas-3.8.0-20_mkl
libcblas conda-forge/win-64::libcblas-3.8.0-20_mkl
liblapack conda-forge/win-64::liblapack-3.8.0-20_mkl
mkl pkgs/main/win-64::mkl-2020.2-256
numpy conda-forge/win-64::numpy-1.19.4-py36hd1b969e_1
pip conda-forge/noarch::pip-20.2.4-py_0
python conda-forge/win-64::python-3.6.11-h6f26aa1_2_cpython
python_abi conda-forge/win-64::python_abi-3.6-1_cp36m
setuptools conda-forge/win-64::setuptools-49.6.0-py36hd36e781_2
vc conda-forge/win-64::vc-14.1-h869be7e_1
vs2015_runtime conda-forge/win-64::vs2015_runtime-14.16.27012-h30e32a0_2
wheel conda-forge/noarch::wheel-0.35.1-pyh9f0ad1d_0
wincertstore conda-forge/win-64::wincertstore-0.2-py36h9f0ad1d_1005
Downloading and Extracting Packages
setuptools-49.6.0 | 919 KB | ########## | 100%
intel-openmp-2020.3 | 2.0 MB | ########## | 100%
numpy-1.19.4 | 4.8 MB | ########## | 100%
python_abi-3.6 | 4 KB | ########## | 100%
certifi-2020.6.20 | 151 KB | ########## | 100%
python-3.6.11 | 18.9 MB | ########## | 100%
wincertstore-0.2 | 15 KB | ########## | 100%
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
==> WARNING: A newer version of conda exists. <==
current version: 4.8.3
latest version: 4.9.1
Please update conda by running
$ conda update -n base -c defaults conda
#
# To activate this environment, use
#
# $ conda activate C:\Users\fuchsdeluxe\AppData\Local\r-miniconda\envs\r-reticulate
#
# To deactivate an active environment, use
#
# $ conda deactivate
python: C:/Users/fuchsdeluxe/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
libpython: C:/Users/fuchsdeluxe/AppData/Local/r-miniconda/envs/r-reticulate/python36.dll
pythonhome: C:/Users/fuchsdeluxe/AppData/Local/r-miniconda/envs/r-reticulate
version: 3.6.11 (default, Aug 5 2020, 19:41:03) [MSC v.1916 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/Users/fuchsdeluxe/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy
numpy_version: 1.19.4
Still get the module not found error...
Just curious, why should I deinstall that virtualenv (which I do not need, just did it bc of the phate intallation error msg above)
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Interesting. Looks like by doing py_discover_config, it is automatically creating a new virtualenv. You're getting the compilation error because s_gd2 is trying to install from source rather than from a wheel. But in theory, if you've successfully installed phate
on system Python, you shouldn't need to reinstall. Let's try the following:
pip freeze
and post the output hereimport phate; print(phate.__version__)
and post the output herereticulate::py_config()
and post the output hereFreshly installed the ubuntu bash for win10:
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 4.19.128-microsoft-standard x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Wed Nov 11 13:41:21 EST 2020
System load: 0.23 Processes: 8
Usage of /: 0.4% of 250.98GB Users logged in: 0
Memory usage: 1% IPv4 address for eth0: 172.17.246.94
Swap usage: 0%
1 update can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
This message is shown once once a day. To disable it please create the
/home/fuchsdeluxe/.hushlogin file.
fuchsdeluxe@DESKTOP-UB6CF8Q:~$ pip freeze
Command 'pip' not found, but there are 18 similar ones.
sry for being such a n00b... do I have to configure this somehow? I installed r-miniconda through reticulate, maybe thats why the linux cannot find a pip installer? I can start a python installation made outside of R though with this by python3
fuchsdeluxe@DESKTOP-UB6CF8Q:~$ python3
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+3
4
>>>
No problem at all. You can access pip
with python3 -m pip
but if reticulate is using miniconda then you should run reticulate::py_config()
to work out which python you should install PHATE from.
I got it to run again finally, this is what worked:
1) Remove the folder C:/Users/fuchsdeluxe/AppData/Local/r-miniconda/envs/r-reticulate/
2) Run reticulate::py_config()
3) Run reticulate::py_install("phate", pip=TRUE)
This time reinstallation of python phate run through without the error that I posted originally, and the R phateR package worked fine. (I just hope I do not have to this again and again after every reboot or whatever caused the initial post problem...)
Thank you so much for your quick responses and your patience! This is a powerful tool for unbiased lineage hierarchy ordering, will cite your work
Stephan
Great! Glad we could work it out.
Hello, I installed PhateR on 7/11/2020 on a win10 PC via RStudio using the github installation tutorial with
which worked fine. I run
phate
to create the initial parameter for t, then optimize on knn and decay - great!Today I wanted to rerun with other data and got this error:
I then checked some similar issues reported on github for Phate, and tried this:
seems to me there is no python phate module anymore... why? Because via RStudio r-miniconda are installed into C:/User/AppData, which files can be removed with time? No idea...
Ok, so I reinstalled phate as above, and got another error:
Then I installed MS VC++ 2015-2019 Redist. 14.28.29325. And got exactly same error as above.
What can I do to resolve this?
Thanks in advance, Stephan