trying to install wxPython using pip install -U wxPython.
I get the below error,
PermissionError: [Errno 13] Permission denied: 'c:\program files\python36\Lib\site-packages\six.py'
I've searched everywhere for a solution. I have changed the Python36 dir security for complete read/write. At a loss on what to do.
Related
enter image description here
I want to pip matminer in the jupyter lab but failed. If someone knows why and how to fix the problem
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/studio-lab-user/.conda/envs/default/lib/python3.9/site-packages/numpy-1.22.1.dist-info/METADATA'
I just ran it with no problems
%pip install matminer --user
I did use a % instead of a ! per the best practices.
Has anyone encountered this error before with vcpkg? I'm running MacOS. To install vcpkg I ran:
git clone https://github.com/Microsoft/vcpkg
...
./bootstrap-vcpkg.sh
...
./vcpkg integrate install
zsh: permission denied: ./vcpkg
Also trying to run:
./vcpkg install wxwidgets
zsh: permission denied: ./vcpkg
Yep, it needs to be executed from the /bin directory and not from the /vcpkg directory. so that means (if you used brew to install it, otherwise it'll be somewhere else) ⤵︎
$ cd /usr/local/Cellar/vcpkg/2020.11-1/bin
(just open a file explorer window and find the bin folder in vcpkg, you can then copy the path name and use that for your cd command, or open a shell window at that directory)
Then all you have to do is simply run the original command ⤵︎
$ ./vcpkg integrate install
For context, I'm trying to point pip at the directory that PyCharm is using. Running OSX High Sierra. Google hasn't had any answers yet (As far as I can tell).
In the command line, if I enter
pip install SpeechRecognition -t /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4/site-packages
It gives me
OSError: [Errno 20] Not a directory
If I try
pip install SpeechRecognition -t /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4/
I get
ERROR: Target path exists but is not a directory, will not continue.
I tried updating pip, and still no luck. What should I try next?
The target dir you're trying to specify is incorrect - it should be
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages
(lib dir instead of bin that stores the executables).
However, it looks like you are trying to install into the python dist's default site packages dir - you shouldn't need to explicitly specify the target dir in this case. Instead, use the correct pip executable:
$ pip3.4 install SpeechRecognition
If pip3.4 executable is not available, use the one bundled with Python 3.4:
$ python3.4 -m pip install SpeechRecognition
I've been trying to install something by pip in macos, but there are always some
errors.
errors
And I know some tips like using 'sudo' to get rid of it.
But how can I install without using 'sudo' ?
Why did it happen actually?
This question is very similar to this thread ErrNo 13.
Error no. 13 mainly happens due to not having permissions to perform the task or the command executed at OS level.
You can try changing the folder structure from
/dir1/dir2
to
dir1/dir2
as suggested by user mjp in here.
Or you can use
sudo
to overcome this.
After a lot of struggle with virtualenv/virtualenvwrapper I decided to remove all virtualenvs and re-install the packages.
root> su myuser
myuser> sudo pip install virtualenv
myuser> sudo pip install virtualenvwrapper
I proceeded to add this to my unix users .bashrc file.
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
source /usr/local/bin/virtualenvwrapper.sh
When I source .bashrc I get about 20 error lines ending with IOError: [Errno 13] Permission denied: '/root/.virtualenvs/premkproject'. I'm running out of ideas...
I have done my homework and tried every suggested solution I could find. I'm running Ubuntu 12.04.
I had the same problem and it was due to .virtualenvs having owner and group root. So the following would fix it (substituting ubuntu:ubuntu for your user and groups):
cd ~
sudo chown -R ubuntu:ubuntu .virtualenvs/
I used the recursive option as I had a problem installing a package with pip and that was due to a file lower down the hierarchy also having a permissions problem.
You never explained in which SO are you working...So if you are in Mac OS X you can easily fix it by giving eXecute permissions.
I believe Linux may face the very same problem altought I myself never got this problem under Linux.
The 'magic words' are the following :
chmod 755 <your path>/virtualenv.py