Skip to content
Advertisement

Tag: anaconda

How can I rename a conda environment?

I have a conda environment named old_name, how can I change its name to new_name without breaking references? Answer New answer: From Conda 4.14 you will be able to use just: Although, under the hood, conda rename still uses [1][2] undermentioned combination of conda create and conda remove. Use the -d flag for dry-run (not destination, as of v22.11.0) Old

How do I upgrade to Python 3.6 with conda?

I want to get the latest version of Python to use f-strings in my code. Currently my version is (python -V): How would I upgrade to Python 3.6? Answer Anaconda has not updated python internally to 3.6. a) Method 1 If you wanted to update you will type conda update python To update anaconda type conda update conda If you

How to insert a picture into Excel at a specified cell position with python (Anaconda) use vba

I try to use this link with vba code but in Python it doesn’t work. AttributeError Traceback (most recent call last) in () 9 sheet.Cells(20, 20).Select 10 #obj1=sheet.Shapes.AddPicture (r’C:/Users/Home/Desktop/picture.jpg’, False, True, 10, 3, 100, 100) —> 11 obj1=wb.ActiveSheet.Pictures.Insert(r’C:/Users/Home/Desktop/picture.jpg’) 12 obj1.ShapeRange 13 obj1.ShapeRange.LockAspectRatio = msoTrue AttributeError: ‘function’ object has no attribute ‘Insert’ Answer Unless you absolutely need to use VBA, this

Jupyter python3 notebook cannot recognize pandas

I am using the Jupyter notebook with Python 3 selected. On the first line of a cell I am entering: The error I get from the notebook is, ImportError: No module named ‘pandas’. How can I install pandas to the jupyter notebook? The computer I launched the Jupyter notebook from definitely has pandas. I tried doing: And it says it

run a crontab job using an anaconda env

I want to have a cron job execute a python script using an already existing anaconda python environment called my_env. The only thing I can think to do is have the cron job run a script called my_script.bash which in turn activates the env and then runs the python script. Trying to execute this script from the command lines doesn’t

Install Plotly in Anaconda

How to install Plotly in Anaconda? The https://conda.anaconda.org/plotly says to conda install -c https://conda.anaconda.org/plotly <package>, and The https://plot.ly/python/user-guide/ says to pip install plotly. I.e., without package. So which packages I should specify in Anaconda conda? I tried without one and get errors: Answer If you don’t care which version of Plotly you install, just use pip. pip install plotly is

Advertisement