-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtroubleshooting.html
More file actions
115 lines (109 loc) · 4.79 KB
/
troubleshooting.html
File metadata and controls
115 lines (109 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Troubleshooting | So You Want To Do Image Analysis With Python</title>
<meta
name="description"
content="Common problems and recovery steps for the SYWTDIAWP course."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Source+Serif+4:opsz,wght@8..60,400;600&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/github-dark.min.css"
/>
<link rel="stylesheet" href="assets/css/site.css" />
</head>
<body>
<a class="skip-link" href="#main-content">Skip to content</a>
<header class="site-header">
<div class="wrap">
<div class="header-shell">
<a class="brand" href="index.html">SYWTDIAWP</a>
<nav class="site-nav" aria-label="Primary">
<a class="nav-link" href="index.html">Home</a>
<a class="nav-link" href="index.html#modules">Modules</a>
<a class="nav-link" href="resources.html">Resources</a>
<a class="nav-cta" href="tutorials/install-python.html">Start here</a>
</nav>
</div>
</div>
</header>
<main class="page-main" id="main-content">
<div class="wrap page-layout">
<div class="lesson-content">
<section class="page-hero">
<p class="page-kicker">Troubleshooting</p>
<h1>When the computer has other ideas</h1>
<p class="lead">
This page exists for the moments when something absolutely should
have worked and very much did not. Most beginner problems are
recoverable and usually belong to a few repeat patterns.
</p>
</section>
<section class="panel">
<h2>Python does not seem to exist</h2>
<ol class="step-list">
<li>Try <code>python --version</code>, then <code>python3 --version</code>, then <code>py --version</code>.</li>
<li>Close and reopen the terminal after installation.</li>
<li>If the command is still not found, the issue is often PATH-related rather than a total install failure.</li>
</ol>
<pre><code>python --version
python3 --version
py --version</code></pre>
</section>
<section class="panel">
<h2>A package installed, but import still fails</h2>
<ol class="step-list">
<li>Confirm the environment is activated.</li>
<li>Run <code>python -c "import sys; print(sys.executable)"</code>.</li>
<li>Install the package again inside that same environment.</li>
<li>If using Jupyter, confirm the notebook kernel matches the environment you expect.</li>
</ol>
<pre><code>python -c "import sys; print(sys.executable)"
python -m pip list</code></pre>
</section>
<section class="panel">
<h2>Jupyter is behaving strangely</h2>
<ol class="step-list">
<li>Restart the kernel.</li>
<li>Run all cells from the top.</li>
<li>Check whether a variable from an earlier run is still lingering in memory.</li>
<li>If needed, build a fresh notebook with the smallest working example.</li>
</ol>
<pre><code>jupyter lab
# then inside Jupyter:
# Kernel -> Restart Kernel
# Run -> Run All Cells</code></pre>
</section>
<section class="panel">
<h2>napari or the plugin will not launch</h2>
<ol class="step-list">
<li>Confirm you are in the environment where napari was installed.</li>
<li>Reinstall the plugin in that same environment.</li>
<li>If the environment feels messy, create a fresh one rather than layering more fixes onto the old one.</li>
</ol>
</section>
</div>
<aside class="page-sidebar">
<section class="callout callout-success">
<h3>One reassuring pattern</h3>
<p>
When something fails, slow the problem down. Ask which environment
is active, which command name works, and what exact error message
appeared. Those three pieces solve a surprising number of issues.
</p>
</section>
</aside>
</div>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</body>
</html>