How to install pipeline packages on spyder? - installation

I am currently learning the basics of SpaCy, and need to install a pipeline package in order to use it. I use the Spyder IDE.
The command is:
$ python -m spacy download en_core_web_sm
However, I have no idea where I should paste this command in order to install the pipeline.
I have tried the command prompt in Spyder(on the righthand side), and I am always greeted with the message "invalid syntax"
I have also tried using this command on the anaconda command prompt, where the first character "$" is never recognised.
What should I do in order to succesfully install this pipeline package? Please and thank you!

Related

No module named 'xlsxwriter'

I'm trying to install xlsxwriter. I'm using VS Code. I installed two different versions of python when I set this up. When I use 'pip install xlsxwriter' it says it's successfully installed, but when I run the code it brings back the above error. (No module named 'xlsxwriter') I'm using 'import xlsxwriter'.
I've tried uninstalling it, installing wheel, and then trying to install it again, but I'm getting the same error.
How do I make sure I'm installing xlsxwriter correctly?
thank you!
I've been able to get the file to run by typing, 'python3 (file name)' but is there a way to change what vs code automatically runs? when I type, 'python --version' it comes back as 2.7.
I'm looking in the command palette, but I'm not seeing python3. I'll keep looking around online, but any help would be wonderful.

Mac OSX Terminal not Recognizing installed CLI Tool

I'm trying to literally download and run the ElectronNet demo (found here). I install the CLI tool, which appears to be accomplished successfully, but when I try to use the tool, terminal does not recognize it. Shown below:
% dotnet tool install electronnet.cli -g
Tool 'electronnet.cli' is already installed.
%electronize start
zsh: command not found: electronize
What could be going on here?
I guess it's something with your path&zsh,
if you try:
~/.dotnet/tools/electronize start
is that work for you?
If so, you can fix your path by editing ~/.zshrc, add this:
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet/bin"
and source the file by running: ". ~/.zshrc"

Use python module as commands in windows

Just like when you install a pip module in bash you can use it straight away from the Terminal without needing to start python like a system command.
Is there a way to do the same thing in windows command prompt without it showing the error "command not found"?

Can't get pip working with psychopy install

I am very new to python and plan to use psychopy quite a lot. I am on a work computer but have full admin rights.
Psychopy came with python version 2.7.11 and includes setuptools already.
I am trying to install the selenium module, but having trouble getting pip to work at all.
In cmd, it is recognising the 'python' command, so I know python is in my path.
I get the message "can't open file 'pip': [Errno2] No such file or directory" from:
python pip install selenium
I get " 'pip' is not recognised as an internal or external command" from:
pip install selenium
When I change directory to where pip is located, I get:
Fatal error in launcher: Unable to create process using '"'
Using pip2 makes no difference.
It seems a simple thing but where am I going wrong with this?!
I never really got to the bottom of this, but this is what I found out and here are the commands that worked for me in Windows. Be aware that I am far from expert!
To run python scripts (*.py) from command line (cmd) then C:\PsychoPy2 and C:\PsychoPy2\DLLs need to be in path. ('Path' contains directories or file extensions that can be more globally accessed, i.e. do not require you to change the prompt to the relevant directories first).
To check, open cmd and either type echo %PATH% or just type python. (If python starts, the line will say >>>. You can exit by typing quit())
To add to path, get properties of computer, then advanced system settings, then environment variables.
To check pip.exe (a sort of installation wizard) is installed, either search for the file, or check C:\PsychoPy2\Scripts for it. This may also need to be in path.
To reinstall the latest versions of pip and setup tools, I went to cmd and typed:
python -m pip install -U pip setuptools
If the same code did not work for other modules (which in my case was due to network access), then I downloaded the wheel file (*.whl) for that module (from their website) and ran the following code:
python -m pip install c:/modulename.whl
These may not be the correct ways of doing things, but they worked for me when I couldn't get other ways to work!
I've just had the exact same issue with the pip install, and a conflict with PsychoPy installations. I think it's because python automatically wants to call on the path that's been set by Psychopy, so it can't get to the 'pip' folders that for me, remain in a temporary/hidden file. This wasn't intuitive for me - on any machine without psychopy python just 'works' when you download it.

How to install missing function package of Octave in Mac?

I try to install the symbolic package for the Octave in the Mac, https://octave.sourceforge.io/symbolic/index.html, which path should be set?
More fundamental problem is that I follow the commands suggested by https://octave.sourceforge.io/ to install the symbolic package described as above, but the "pkg install" is always shown "pkg: command not found" in the command line. How to deal with it?
I had a similar problem and resolved it by using "pkg -forge install symbolic", which installs from the forge central repository.
I guess you entered the pgk install command in the osx shell. It has to be issued in octave. Start octave first, then run pgk install symbolic in octave´s command line.
To see installed package list user pkg list command.

Resources