New answers tagged

1 vote
Accepted

How to figure out whether a path is the root of a ZFS dataset mountpoint?

There doesn't seem to be an easy way to tell whether mountpoint is a parent or child. You could use e.g. property usedbychildren that should be 0B for leaf (lowest child) node. $ zfs list -o name,...
  • 1,425
0 votes

Scatter chart, with one text (non-numerical) axis

There is a way to build a scatter chart even with both axes formed by categories but it is slightly tricky and requires a hybrid solution. However, the effect is good and you can then take a ...
1 vote

Windows 11 console closing early compared to Windows 10

It might be a difference is scheduling : If there is even one second in which the console has no users, then it should be closed. This is true for both Windows 10 and 11, but Windows 10 might be ...
  • 431k
0 votes

Python refuses to be recognized in Command Prompt despite multiple attempts to add to PATH

Clean (uninstall) your system of all Python installations. Use RegEdit if necessary. Then install the Anaconda Navigator distribution. Make sure you install it (as Windows Administrator) in the ...
0 votes

Running remote ssh command with spaces?

I have the setup that both host and client run git bash on windows and the openssh default shell on the server was set to git bash. I needed to run ssh username@ipaddress 'rm -rf TESTING' But, when ...
  • 1
0 votes

How to delete python3 from /usr/bin/ on MacOS Ventura?

You probably should think thrice before attempting this. In your case, you can simply use the python version in /usr/local/bin by manipulating the $PATH variable. Homebrew probably does this ...
  • 101
1 vote

Find outdated/updatable pip packages

pip list --outdated | gawk -F ' ' 'NR>2{print$1}' | xargs pip install --upgrade handy way to update all outdate package without install any extra package alias pip-update='pip list --outdated | ...
0 votes

'MemoryError' when trying to install a python package in ubuntu

This worked for me pip --no-cache-dir install torch
0 votes

"No commands supplied" error when executing a Python script on Ubuntu

This can happen if you have a script called setup.py in your project (which clashes with the python setup.py install command), and you are importing it in the script you are trying to run. Rename it, ...
  • 123
1 vote

Can't run python from shell within specific conda environment

Problem was solved by creating the environment with: conda create --name myenv -c conda-forge python=3.7.4 [other packages needed..] python 3.7.4 is installed by default in Anaconda 2019.10 (the last ...
0 votes
Accepted

Get an error Remove-Item : Cannot bind parameter 'ErrorAction' after deactivating conda environment

In gdal-deactivate.ps1, replace all -ErrorAction Ignore with -ErrorAction SilentlyContinue The "Ignore" error action was added in a later version of powershell/.net
  • 3,100
0 votes

Why windows powershell will not show my python version?

Possibly because after python 3.3 intended command is not python, but simply py Detailed explanation here And short answer to your question: check if powershell command py -0p --list-paths finds any ...
  • 101
1 vote
Accepted

pip install --user xmlstarlet fails on Fedora 37

Looking at the pypi project page for xmlstarlet, you can see that there are binary releases up to python 3.10 (cp310). There is no binary release for python's latest release, 3.11, which fedora 37 now ...
  • 2,390
1 vote

Python TCP socket connection between Linux and Windows10 not working as expected

I solved it changing the IP where was opening the port. I was using 127.0.0.1 and changed it to 0.0.0.0. I realized it because when I tried to scan my own IP address (not 127.0.0.1, but which is ...
  • 21

Top 50 recent answers are included