Run command prompt with Administrator permission (Run as administrator)
and then run the command :
netsh winsock reset
And then restart the computer, the issue disappear.
Reference:
https://www.cnblogs.com/520future/p/17615780.html
Run command prompt with Administrator permission (Run as administrator)
and then run the command :
netsh winsock reset
And then restart the computer, the issue disappear.
Reference:
https://www.cnblogs.com/520future/p/17615780.html
Error:
[Errno 48] error while attempting to bind on address ('127.0.0.1', 8000): address already in use
run this command to get the the related process
#ps -fA | grep python
Mark down the second number of returned results.
#kill 1192
Kill all process on 8000 port:
#kill -9 $(lsof -t -i:"8000")
Reference:
https://stackoverflow.com/questions/34457981/trying-to-run-flask-app-gives-address-already-in-use
https://stackoverflow.com/questions/19071512/socket-error-errno-48-address-already-in-usePE4WW9ubHOASEzgiT6lDg65jIDE/edit
there should be NOT mistake from apple official tutorial, go clean the derived data then the code should be works, here is the method to clean xCode derived data :
i am a newbie to swiftUI and using Xcode version 13.2.1 and follow the official tutorial, use command-click the text "Hello world" but won't show the menu with option item "Show SwiftUI Inspector"in preview and it would auto select and highlight the code segment in code view.
tutorial instruction:
Finally i found alt-click work, but not use the command-click as the instruction said.
reference:
https://developer.apple.com/tutorials/swiftui/creating-and-combining-views
https://developer.apple.com/documentation/xcode/creating-your-app-s-interface-with-swiftui
command to update pip3:
python3 -m pip install --upgrade pip
command to check pip3 version
pip-3 --version
Example: