Skip to content
Advertisement

Tag: conda

Creating requirements.txt in pip compatible format in a conda virtual environment

I have created a conda virtual environment on a Windows 10 PC to work on a project. To install the required packages and dependencies, I am using conda install <package> instead of pip install <package> as per the best practices mentioned in https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#using-pip-in-an-environment In order to distribute my software, I choose to create an environment.yml and a requirements.txt file targeting

Why package is not updated even the lifecycle script has been executed successfully in SageMaker?

I wanted to update pandas version in ‘conda-python3’ in SageMaker, I’ve followed the steps in this page, and linked the new configuration to my instance, CloudWatch log shows me the script has been executed successfully, but when I restart my instance and print out the panda version, it’s still showing the old version 0.24.2, I don’t understand why? This is

Multi-user Conda Workflow

Firstly, to mention what my goal is: To have a shared environment structure for 2+ users to access & use. Current setup: I have a Windows Server 2016 with full admin access that’s connected to the companies active directory. I’ve been using Python/Conda for a couple of years now but only for myself, I’ve never had to share any code

python conda: created a environment, but it is not using conda’s python

I have been using anaconda for a while, and its Python executable is located at /Users/ufo/opt/anaconda3/bin/python. I have tried to create an environment with conda, and the new environment would use copy this Python to environment’s bin. However, with current Anaconda versation, the new environment will not use anaconda’s Python, but use the original Python pre-installed with Mac OS, which

R reticulate libstdc++so GLIBCXX_3.4.21 not found issue

I was trying to use pandas from R . I used the reticulate library for the same. The sample code I used is given below library(reticulate) use_condaenv(“my_env_37”,required=T) py_discover_config() py_run_string(“import pandas as pd”) Error Output from py_discover_config() Conda version : 4.6.8 Python Version : 3.6.8 Pandas Version : 0.24.2 OS: RHEL 7.4 R Version : 3.5.1 reticulate Version : 1.9 Is

No module named “Torch”

I successfully installed pytorch via conda: I also successfully installed pytorch via pip: But, it only works in a jupyter notebook. Whenever I try to execute a script from the console, I get the error message: No module named “torch” Answer Try to install PyTorch using pip: First create a Conda environment using: Activate the environment using: Now install PyTorch

ImportError: DLL load failed, while file is in working directory

I’m trying to import scanpy for use in jupyter notebook with miniconda3. However, when I try to import scanpy, it gives an ImportError about the hdf5extension dll. When I look in the directory of the package tables though, I can see two files named hdf5.dll and hdf5extension.cp37-win_amd64.pyd (https://gyazo.com/a7d5a9d7d28756a8d82bc060b33b91ca). I assume that these are the files which should be imported, but

Advertisement