Cannot install pathos after download - anaconda

I am attempting to run a script that uses pathos.multiprocessing. I could not find it in "All" packages for the relevant environment in Anaconda Navigator and so opened a Terminal Window from Navigator. I then typed:
pip install pathos
Which returned the message "Successfully installed". I still could not see the package in the list of packages for that environment and thus believed I have only downloaded, not installed the package. So I then ran, again from the same Navigator Terminal Window;
conda install pathos
Which returned the error
The following packages are not available from current channels: pathos
I do not understand as I thought I had already successfully downloaded using my pip install command. What is the error in my approach?

Related

How do I fix the error I get when executing pip in Spyder 5.0.3

I am getting an error when trying to run pip through Spyder 5.0.3
I have recently installed Spyder 5.0.3 on my machine from https://www.spyder-ide.org/
When I attempt to exectute "pip --version" on IPython in Spyder I get the following error message:
Note: you may need to restart the kernel to use updated packages.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
How do I fix this so I can run pip in IPython Spyder?
The standalone installer for Windows available in the Spyder website doesn't have pip in it. If you want to use or install a specific package outside of the ones that are shipped with the standalone installer you will need to go with the modular approach to use Spyder (create an environment and select his python executable as the interpreter that Spyder will use).
For that you will need to:
Install a python distribution as for example miniforge: https://github.com/conda-forge/miniforge/tree/4.10.1-3#download
Create a new python environment, install spyder-kernels and the packages you want to use in it.
Set the Spyder interpreter preference to point to the environment created.
The Spyder GitHub wiki has a page that explains the process to setup some of this elements: https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder#the-modular-approach

Spyder does not update to V4

Updating spyder does nothing. My system is still stuck on V3. Can someone help me get this onto V4 please?
I start the Anaconda navigator.
I start Spyder V3.3.6
A prompt informs me that Spyder 4.0.1 is available.
I follow the instructions at : https://docs.spyder-ide.org/installation.html
Open an Anaconda command window and type: conda update spyder
Get the following:
(base) C:\Users\user>conda update spyder
Collecting package metadata (current_repodata.json): done
Solving environment: \
Updating spyder is constricted by
anaconda -> requires spyder==3.3.6=py37_0
If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`
done
# All requested packages already installed.
run conda update anaconda to update your anaconda version then update your spyder version using conda update spyder
I am listing all my steps, as I'm not sure exactly what steps permitted what other steps.
I also had Anaconda installed for managing and using Spyder 3.3.6. When I ran Spyder, I get the message Spyder 4.1.5 is available!. I ran Anaconda Navigator as Administrator, and in the Home tab, the Spyder Settings menu showed Update Application grayed out. This persisted even if I entered the Environments Tab and clicked on Update Index....
I opened an Anaconda Prompt as Administrator and ran:
conda update --all
conda update conda
conda update anaconda
conda update spyder
I also got the following message:
Updating spyder is constricted by
anaconda -> requires spyder==3.3.6=py37_0
If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`
done
# All requested packages already installed.
I closed the Anaconda Prompt and opened a new one, in case that was needed for the updated Anaconda to work. I re-issued condate update spyder but got the same message as above. I confirmed that Spyder is still at version 3.3.6.
I re-ran Anaconda Navigator. This time, Spyder's Update Application was not grayed out, but clicking on it only caused a brief spinning circle. The Spyder version was not updated. I re-entered the Environments tab and re-clicked on Update Index... and waited for it to finish. In Anaconda Navigator's Home tab, in Spyder's Settings menu, I was then able to Install specific version > 4.1.5.

Why can't I run after installing anaconda?

I installed the latest version of Anaconda on the official website and installed it according to the online tutorial. But when I clicked and ran Anaconda Navigator, the program disappeared after the black box popped up, and then there was no response.
I tried to "conda info --envs", then it give "base * C:\ProgramData\Anaconda3"
I tried to "conda install -c anaconda anaconda-navigator", then it give "CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/anaconda/win-64/current_repodata.json
Elapsed"
my user env variable is "C:\ProgramData\Anaconda3\;C:\Program Files\Python37\"
I expect Anaconda can be run and the reason why it doesn't work, though it is download by official website.
download complete anaconda package
https://www.anaconda.com/distribution/#download-section
and the navigator will be installed automatically

Anaconda continue installation on Linux

I was installing anaconda for my Ubuntu 18.04 machine but I happened to exit the terminal accidentally after a couple of hours. I wish to resume the installation process at that step where it was installing various packages like sklearn, qt, etc.
I get the following error when I run bash Anaconda3-2018.12-Linux-x86_64.sh and give the path where I want my conda home to be (not the default home folder)
ERROR: File or directory already exists: '<path_to_anaconda>/anaconda3'
If you want to update an existing installation, use the -u option.
How do I approach this error? How do I recover from partial installation?
Also conda update --all gives an error conda:command not found

ijavascript will not install

I have been trying to run Javascript from a Jupyter Notebook on Windows 10 but failed miserably. It seems I cannot install IJavascript to make it available.
All installation guides say to use Anaconda for IJavascript - so I did, but I CANNOT FIND IJAVASCRIPT anywhere within Anaconda, only the js packages, i searched everywhere there was a search bar available. So, because I am stubborn i tried the hard way:
Installed all javascript packages except mocha (which cannot be found) listed here:
https://anaconda.org/javascript/repo
then tried
npm install -g ijavascript
but keep getting this error:
c:\users\ryuuzako\anaconda3\scripts\node_modules\ijavascript\node_modules\nan\nan_json.h(89): error C2660: 'v8::JSON::P
arse': function does not take 2 arguments [C:\Users\ryuuzako\Anaconda3\Scripts\node_modules\ijavascript\node_modules\ze
romq\build\zmq.vcxproj]
"Javascript" type does not appear when creating a new file in Jupyter, my guess is because ijavascript is not installed..
ANY suggestion to make it work is greatly appreciated.
I can provide the whole npm log but it is humongous.
Feel free to assume i am a complete idiot who didn't work with node before.
I've just forked ijavascript and edited the documentation for the Windows installation section as shown below.
Windows
Install Python3 or the Anaconda3 Python distribution.
In the command line:
pip3 install --upgrade pip
pip3 install jupyter
npm install -g ijavascript
ijsinstall
If the ijinstall command is not recognized, you can execute it manually by navigating to your npm install directory and running the ijinstall batch file. If you do not know where your npm install is located, try looking for it in the default install location: C:\Users\USERNAME\AppData\Roaming\npm.
Then you can run jupyter notebook in your terminal to load Jupyter Notebook. When you create a new Jupyter Notebook, you should see the Javascript (Node) kernel available.
If using the Anaconda alternative to the standard Python distribution, it comes pre-installed with Jupyter Notebook. If using Anaconda, you can skip the pip3 install jupyter step.
This picture might also help, when it comes to the ijinstall part.
I struggled with this as well. After installing by running commands:
pip install jupyter
npm install -g ijavascript
You will need to update the environment variable named 'Path' in the 'System Variables' section.
In Windows 10, Python 3.10, the path to add looks like:
C:\Users\your-windows-user\AppData\Roaming\Python\Python310\Scripts
After changing the environment variable, you will need to re-start the computer for it to take effect.
Once this is done, run:
ijsinstall
in the command prompt and you should be good to go.
This also happeed to me.
First thing install anaconda after that(by default you have installed jupyter),
then search in your menu apps for anaconda prompt, then install ijavascript from anaconda prompt:
npm install -g ijavascript
ijsinstall
then run jupyter from anaconda prompt
jupyter notebook

Resources