Aws CLI installation error on windows system - windows

when i tried to install aws cli on cmd(Windows). i am getting message first later its continued.you can see below
By the way I added path in environmental variable like that
after finish intallation i get this message
but still i am getting this message .what should i do please help me .
aws' is not recognized as an internal or external command,
operable program or batch file.

see the error message during the installation, "Defauling to user installation because normal site-packages is not writable". So it has been installed inside your user directory.
to find out the user installatiion directory.
you can open a python prompt by entering the command python in the command line
import sys package import sys
check the output of sys.path
then you can add the script directoy of the python path to the PATH environment variable
Usually the installation location should be c:\users\[username]\AppData\Roaming\Python\Python38\scripts/aws.exe
your python version might be different.
You should also add c:\users\[username]\AppData\Roaming\Python\Python38\scripts to your path.
update: you can also use pip show awscli to see where the module is installed

Related

What is the proper way to insert a variable into a file path in BASH?

I am working on my first script and it has been going well aside from one thing. The script is meant to be a simple script to install a software on Ubuntu devices for work. The main problem I am running into is the path the package is downloaded to is /home/(the user)/Linux_Test (custom file I have in github). Since this is suppose to run on multiple machines I am trying to make the user part of the path a variable. Currently I have
# Install the Agent.
sudo dpkg -i "/home/$USERNAME/Linux_Test/'SentinelAgent_linux_v22_1_2_7 (1).deb'"
and the error it is throwing is:
dpkg: error: cannot access archive '/home//Linux_Test/'SentinelAgent_linux_v22_1_2_7 (1).deb'': No such file or directory
I have changed the variable from "USERNAME" to just "USER" but that attempts to run it as root.

'flask' is not recognized as an internal or external command, operable program or batch file

I have installed pip and flask in the directory. After writing flask code in a file, I have run the command flask run and get the following error:
'flask' is not recognized as an internal or external command, operable program or batch file
Note: I am in the directory where pip and flask are installed, and the file is also located here which I want to run.
This may be because you are using virtual environment.
So after activating virtual environment, install flask in the environment and try to run the code.
uninstall flask and re-install it using the same commands it worked for me.
Note: I wasn't using any virtual environment.

Cannot access RIDE robot framework from other users in same machine

I installed Robotframework RIDE with my user credentials and trying to access that by logging in with the another user in the same machine. when i copy paste the ride.py(available in C:/Python27/Scripts) file from my user to another user i can access RIDE by double clicking the ride.py file, but when i try to access using ride.py through command line i am not able access RIDE showing a error msg as "ride.py is not recognised as an internal or external command, operable program or batch file ". Installed python for all users and again re installed everything through pip in C:/Users, previously installed in C:/Users/MyUser. While i am trying to re install everything using pip in C:\Users it is showing as "Requirement already satisfied"
This error indicates that ride.py is not in the %PATH% sys variable:
"ride.py is not recognised as an internal or external command, operable program or batch file ".
Usually RIDE lives at C:\Python27\Lib\site-packages\robotide
You may try to run it with the full path in the command:
pythonw C:\Python27\Lib\site-packages\robotide\__init__.py
You may check if there is C:\Python27\Scripts\ride.py and the %PATH% variable for the other users (better to change it a System level).
About the error "Requirement already satisfied" from pip, that may be because:
1. RIDE is correctly installed (but you missed to run it in the first error)
2. You were calling a different pip install
finally got the solution, problem is not with the other users or installation, it is ride.py file which is missing in 'C:\Python27\Scripts' folder i replaced that file and now i am able to access ride.py from command prompt for all users in the machine.
Check the directory where you have the ride(Python file).
Upon opening the command prompt , for me the default path is C:\Users\etwxxbe.
Copy paste the ride(Python file) in the default path ,here the directory is etwxxbe.
Then use the command C:\Users\etwxxbe>ride.py to open ride.

JPM not recognized as a command

I'm trying to write my fist firefox addon, but I can't seem to get jpm working. My OS is Windows 7. I have node js installed and I'm trying to follow the instructions here to install the add-on sdk. However, after I install jpm and I try running the command, I get the error jpm is not recognized as an internal or external command, operable program, or batch file." below is a screenshot of the command prompt window.
Let's say nodejs folder's path is C:/nodejs/
You can run jpm from the command line, but you must do it from nodejs installation directory.
If you wish to run it from any directory, what you need to do is edit a System Variable called Path, by appending to it the path to your nodejs installation, like this: ;C:\nodejs\. Afterwards open a new terminal (command prompt) session.
So for example: go to Control Panel -> search for "system variable" -> edit system variables -> find "Path" system (not user) variable on the list -> edit it -> append ;C:\nodejs\ to the end of its text -> open new command prompt.
I'm running a Polish version of Windows at the moment, so the guide isn't exact. I'll update it later. By system variable I mean global system environment variable as opposed to user environment variable.
I had the same problem...
when you install jpm using the npm --global option, the package is installed in c:\users\<your-user-name>\AppData\Roaming\npm\
In your example, you can either call jpm by specifying the complete path.
C:\users\B^3\AppData\Roaming\npm\jpm
Or add the C:\users\B^3\AppData\Roaming\npm to the environment variable PATH as suggested by #Sagi

MacPorts Installation -- Shell Commands/Postflight Script

I had run the MacPorts installer (2.0.3) for my OS X Leopard (10.5.8) which finished "successfully". Unfortunately the port command was not available so I looked in the MacPorts Guide which says that the installer should have run a so-called "postflight" script that sets the necessary environment variables. I tried to run the postflight script manually (which I downloaded from here), but the execution fails with the following output:
Detected the bash shell.
Your shell already has the right PATH environment variable for use with
MacPorts!
Your shell already has the right MANPATH environment variable for use with
MacPorts!
Your shell already has the right DISPLAY environment variable for use with
MacPorts!
Adding [default] tag to sources.conf if needed...
couldn't read file "/Contents/Resources/upgrade_sources_conf_default.tcl": no
such file or directory
Updating port image format...
couldn't read file "/Contents/Resources/images_to_archives.tcl": no such file or
directory
Synchronizing the MacPorts installation with the project's rsync server...
-bash: __PREFIX__/bin/port: No such file or directory
An attempt to synchronize your recent MacPorts installation with the project's
rsync server failed!
Please run 'sudo port -d selfupdate' manually to find out the cause of the
error.
You have succesfully installed the MacPorts system, launch a terminal and try it
out!
Read the port(1) manual page and http://guide.macports.org for help,
http://www.macports.org/contact.php if you need to get in touch with The
MacPorts Project.
Any ideas?
First invoke the port command directly:
$ /opt/local/bin/port help
If that comes back with something reasonable (like the help text) then it's just that your $PATH isn't being used by your current shell. Try logging off and back on again to resolve that in the short term (this will test that your .bashrc file is correctly configured) or you could just modify the PATH environment variable directly (which doesn't test .bashrc):
$ export PATH=$PATH:/opt/local/bin
You downloaded the postflight script but it alone cannot access the accessory scripts in Contents/ because those are located into the install package.
Those missing Tcl scripts are for upgrading from an older install, the log says PATH was already correctly configured but the macports bin directory could have the wrong position in PATH variables, for instance being at the end of PATH.
If you are doing a fresh install you can just only need PATH and MANPATH -you want man pages provided by macports before system's ones- as per [1]
[1] http://guide.macports.org/#installing.shell.postflight

Resources